Microsoft SQL Server Database Quiz Questions

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

AUTO INCREMENT columns in SQL Server automatically generate unique values.

Q2
True / False

AUTO INCREMENT is typically used for primary keys in SQL Server.

Q3
True / False

You can manually insert values into an AUTO INCREMENT column.

Q4
True / False

AUTO INCREMENT columns can contain negative values.

Q5
True / False

SQL Server uses the IDENTITY property to create AUTO INCREMENT columns.

Q6
True / False

The AUTO INCREMENT value in SQL Server resets after a server restart.

Q7
True / False

You can specify the starting value for an AUTO INCREMENT column in SQL Server.

Q8
True / False

The AUTO INCREMENT value can only increase by 1.

Q9
True / False

An AUTO INCREMENT column can be part of a composite key in SQL Server.

Q10
True / False

The IDENTITY property is used exclusively for AUTO INCREMENT functionality.

Q11
True / False

AUTO INCREMENT columns require unique constraints in SQL Server.

Q12
True / False

AUTO INCREMENT columns can have default values.

Q13
True / False

You can change the increment value of an AUTO INCREMENT column after its creation.

Q14
True / False

AUTO INCREMENT columns can be created on varchar data types.

Q15
True / False

You can use the IDENTITY_INSERT statement to manually insert values into an AUTO INCREMENT column.

Q16
Single Choice

Which property is used to define an AUTO INCREMENT column in SQL Server?

Q17
Single Choice

What keyword can be used to specify the starting value and increment for an AUTO INCREMENT column?

Q18
Single Choice

Which of the following statements correctly creates an AUTO INCREMENT column?

Q19
Single Choice

How do you retrieve the last generated AUTO INCREMENT value?

Q20
Single Choice

What happens if you try to insert a value into an AUTO INCREMENT column without specifying an identity insert?

Q21
Single Choice

Which function can be used to reset the identity seed of an AUTO INCREMENT column?

Q22
Single Choice

What is the default increment value for an IDENTITY column if not specified?

Q23
Single Choice

Which of the following allows inserting explicit values into an IDENTITY column?

Q24
Single Choice

What is the purpose of the IDENTITY property in SQL Server?

Q25
Single Choice

Which function returns the last identity value generated in the current session?

Q26
Single Choice

Which statement is used to specify the next value to be generated by an IDENTITY column?

Q27
Single Choice

What happens if you specify a negative increment value for an IDENTITY column?

Q28
Single Choice

What is the result of the following statement: 'SELECT SCOPE_IDENTITY()'?

Q29
Single Choice

Which of the following is true about the IDENTITY property in SQL Server?

Q30
Single Choice

Which of the following statements about the IDENTITY property is correct?

Q31
Single Choice

Which statement enables manual insertion of values into an IDENTITY column?

Q32
Multiple Choice

Which of the following scenarios would cause an IDENTITY column to skip values?

Q33
Multiple Choice

Which constraints can be used together with AUTO INCREMENT columns for data integrity?

Q34
Multiple Choice

What are the advantages of using AUTO INCREMENT columns?

Q35
Multiple Choice

Which functions can retrieve the last generated AUTO INCREMENT value?

Q36
Multiple Choice

Which of the following statements about IDENTITY properties is true?

Q37
Multiple Choice

What are the characteristics of AUTO INCREMENT columns in SQL Server?

Q38
Multiple Choice

Which scenarios can cause gaps in IDENTITY column values?

Q39
Multiple Choice

What happens when you delete rows from an AUTO INCREMENT table?

Q40
Multiple Choice

Which of the following statements about IDENTITY columns are correct?

Q41
Multiple Choice

Which of the following are true about IDENTITY properties in SQL Server?

Q42
Multiple Choice

Which properties can be set for an IDENTITY column?

Q43
Multiple Choice

What are the possible uses of AUTO INCREMENT columns in SQL Server?

Q44
Multiple Choice

Which features of IDENTITY columns aid in data integrity?

Q45
Multiple Choice

What should be considered when creating AUTO INCREMENT columns in SQL Server?