MCQ King
17 – Create Table MCQ
Best of luck!
1 / 25
1. What SQL statement is used to create a new table in a SQL Server database?
2 / 25
2. In SQL Server, which keyword is used to specify the name of the table to be created?
3 / 25
3. When creating a table in SQL Server, which clause is used to define the columns and their data types?
4 / 25
4. In SQL Server, which of the following is an example of a valid data type for a column?
5 / 25
5. Which SQL statement is used to specify a primary key constraint for a column when creating a table?
6 / 25
6. In SQL Server, what is the purpose of the “NOT NULL” constraint when creating a table?
7 / 25
7. What is the role of the “DEFAULT” keyword in a SQL Server table creation statement?
8 / 25
8. In SQL Server, which clause is used to add a check constraint when creating a table?
9 / 25
9. What is the purpose of the “FOREIGN KEY” constraint when creating a table in SQL Server?
10 / 25
10. In SQL Server, what is the role of the “REFERENCES” keyword in a foreign key constraint?
11 / 25
11. When creating a table, which SQL clause is used to specify a default value for a column?
12 / 25
12. In SQL Server, which keyword is used to specify the name of the column when defining a primary key constraint?
13 / 25
13. What is the purpose of the “UNIQUE” constraint when creating a table in SQL Server?
14 / 25
14. In SQL Server, what does the “IDENTITY” property do when applied to a column?
15 / 25
15. When creating a table in SQL Server, which clause is used to add a unique constraint to a column?
16 / 25
16. In SQL Server, what is the purpose of the “CLUSTERED” keyword when defining a primary key constraint?
17 / 25
17. What is the primary purpose of a “PRIMARY KEY” constraint in SQL Server?
18 / 25
18. In SQL Server, what is the primary function of a “CHECK” constraint when creating a table?
19 / 25
19. Which SQL clause is used to specify a condition for a “CHECK” constraint when creating a table in SQL Server?
20 / 25
20. In SQL Server, what is the primary function of the “DEFAULT” constraint when creating a table?
21 / 25
21. Which SQL clause is used to specify a default value for a column when creating a table?
22 / 25
22. What does the “CHECK” constraint do when applied to a column in SQL Server?
23 / 25
23. In SQL Server, which SQL clause is used to specify a unique constraint for a column when creating a table?
24 / 25
24. What is the role of the “CONSTRAINT” clause when creating a table in SQL Server?
25 / 25
25. In SQL Server, what is the primary purpose of the “AS” keyword when creating a table?
Your score is
Restart quiz