Microsoft SQL Server Database Quiz Questions

Chapter Name:Chapter 5 - DDL (Data Definition Language)
Lesson Content Link:ALTER TABLE
Current Quiz Count:45
Progress
0%
Q1
True / False

In SQL Server, the ALTER TABLE statement can be used to add a new column to an existing table.

Q2
True / False

You can use the ALTER TABLE statement to change the data type of an existing column in SQL Server.

Q3
True / False

In SQL Server, you can use the ALTER TABLE statement to drop a column from a table.

Q4
True / False

The ALTER TABLE statement in SQL Server can be used to rename a table.

Q5
True / False

You can use the ALTER TABLE statement to add a primary key constraint to an existing table in SQL Server.

Q6
True / False

In SQL Server, the ALTER TABLE statement cannot be used to modify a column's default value.

Q7
True / False

You can use the ALTER TABLE statement to disable a foreign key constraint in SQL Server.

Q8
True / False

The ALTER TABLE statement in SQL Server can be used to move a table to a different schema.

Q9
True / False

In SQL Server, the ALTER TABLE statement can be used to create an index on an existing table.

Q10
True / False

You can use the ALTER TABLE statement to add a CHECK constraint to an existing table in SQL Server.

Q11
True / False

The ALTER TABLE statement in SQL Server can be used to change the collation of a column.

Q12
True / False

In SQL Server, the ALTER TABLE statement cannot be used to modify a table's schema.

Q13
True / False

You can use the ALTER TABLE statement to drop a primary key constraint from a table in SQL Server.

Q14
True / False

The ALTER TABLE statement in SQL Server can be used to rename a column.

Q15
True / False

In SQL Server, the ALTER TABLE statement can be used to modify the identity property of an existing column.

Q16
Single Choice

Which SQL Server statement is used to add a new column to an existing table?

Q17
Single Choice

In SQL Server, which keyword is used to remove a column from an existing table?

Q18
Single Choice

Which clause is used to add a primary key constraint to an existing table in SQL Server?

Q19
Single Choice

In SQL Server, which keyword is used to change the data type of an existing column?

Q20
Single Choice

Which statement is used to rename a column in SQL Server?

Q21
Single Choice

In SQL Server, how can you add a NOT NULL constraint to an existing column?

Q22
Single Choice

Which keyword is used to disable a constraint in SQL Server?

Q23
Single Choice

In SQL Server, which clause is used to change the default value of a column?

Q24
Single Choice

Which SQL Server statement is used to move a table to a different schema?

Q25
Single Choice

In SQL Server, which statement is used to add a CHECK constraint to an existing table?

Q26
Single Choice

Which keyword is used to enable a previously disabled constraint in SQL Server?

Q27
Single Choice

In SQL Server, how can you remove a NOT NULL constraint from an existing column?

Q28
Single Choice

Which SQL Server statement is used to change the collation of a column?

Q29
Single Choice

In SQL Server, which statement is used to drop a default constraint from a column?

Q30
Single Choice

Which keyword is used to modify the schema of a table in SQL Server?

Q31
Multiple Choice

Which of the following actions can be performed using the ALTER TABLE statement in SQL Server?

Q32
Multiple Choice

Which of the following constraints can be added to an existing table using the ALTER TABLE statement in SQL Server?

Q33
Multiple Choice

Which of the following are valid keywords used with the ALTER TABLE statement in SQL Server?

Q34
Multiple Choice

Which of the following statements about the ALTER TABLE statement in SQL Server are true?

Q35
Multiple Choice

Which of the following actions cannot be performed using the ALTER TABLE statement in SQL Server?

Q36
Multiple Choice

Which of the following keywords are used with the ALTER TABLE statement to rename a table in SQL Server?

Q37
Multiple Choice

Which of the following statements about the ALTER TABLE statement in SQL Server are false?

Q38
Multiple Choice

Which of the following actions can be performed using the ALTER TABLE statement in SQL Server?

Q39
Multiple Choice

Which of the following keywords can be used with the ALTER TABLE statement to disable a constraint in SQL Server?

Q40
Multiple Choice

Which of the following keywords can be used with the ALTER TABLE statement to enable a constraint in SQL Server?

Q41
Multiple Choice

Which of the following actions can be performed using the ALTER TABLE statement in SQL Server?

Q42
Multiple Choice

Which of the following keywords are used with the ALTER TABLE statement to change the collation of a column in SQL Server?

Q43
Multiple Choice

Which of the following statements about the ALTER TABLE statement in SQL Server are true?

Q44
Multiple Choice

Which of the following actions can be performed using the ALTER TABLE statement in SQL Server?

Q45
Multiple Choice

Which of the following keywords can be used with the ALTER TABLE statement to drop a constraint in SQL Server?