Microsoft SQL Server Database Quiz Questions

Chapter Name:Chapter 6 - DML (Data Manipulation Language)
Lesson Content Link:TRUNCATE
Current Quiz Count:45
Progress
0%
Q1
True / False

The TRUNCATE TABLE command removes all rows from a table and cannot be rolled back.

Q2
True / False

TRUNCATE TABLE can be used on tables with foreign key constraints.

Q3
True / False

TRUNCATE TABLE resets the identity value to its seed value.

Q4
True / False

TRUNCATE TABLE can be used to delete specific rows based on a condition.

Q5
True / False

TRUNCATE TABLE operation generates a large amount of log data.

Q6
True / False

TRUNCATE TABLE can be used in a transaction and can be rolled back.

Q7
True / False

TRUNCATE TABLE affects table structure, including column definitions.

Q8
True / False

TRUNCATE TABLE can be used to delete rows from a table with indexes without affecting the indexes.

Q9
True / False

The TRUNCATE TABLE command can be used on tables that are part of a replication topology.

Q10
True / False

TRUNCATE TABLE can be used to remove rows from tables in a partitioned table structure.

Q11
True / False

TRUNCATE TABLE operation is faster than DELETE when removing all rows from a large table.

Q12
True / False

TRUNCATE TABLE does not fire any DELETE triggers that may be defined on the table.

Q13
True / False

TRUNCATE TABLE can be rolled back if it is part of a transaction.

Q14
True / False

TRUNCATE TABLE is suitable for large tables where deleting all rows is required without affecting the schema.

Q15
True / False

The TRUNCATE TABLE command cannot be used if there are active triggers associated with the table.

Q16
Single Choice

What is a primary benefit of using TRUNCATE TABLE compared to DELETE?

Q17
Single Choice

Which SQL command can be used when you want to maintain the table structure but remove all rows?

Q18
Single Choice

Which command is not allowed on tables with foreign key constraints?

Q19
Single Choice

What effect does TRUNCATE TABLE have on the table structure?

Q20
Single Choice

Which command can be used to delete all rows in a table but keep the table structure and constraints intact?

Q21
Single Choice

Which command will not fire any DELETE triggers defined on the table?

Q22
Single Choice

Which command is not allowed to execute on tables that participate in replication?

Q23
Single Choice

Which SQL command is suitable for quickly clearing data from a table in a large partitioned table structure?

Q24
Single Choice

Which command should be used if you need to reset the identity column values in a table?

Q25
Single Choice

What impact does TRUNCATE TABLE have on the transaction log compared to DELETE?

Q26
Single Choice

Which SQL command is recommended for clearing all rows from a table efficiently without affecting the schema?

Q27
Single Choice

Which command can be used to clear all rows from a table that is part of a large database with multiple partitions?

Q28
Single Choice

Which command should be used to quickly delete all rows while keeping the table structure and constraints intact?

Q29
Single Choice

Which SQL command does not affect the table’s structure or its schema?

Q30
Single Choice

Which command will not activate any associated DELETE triggers?

Q31
Single Choice

What effect does TRUNCATE TABLE have on the identity column values in the table?

Q32
Single Choice

Which command should be used when the goal is to remove all rows from a table and reset identity columns to their initial value?

Q33
Single Choice

Which command is suitable for clearing data from tables involved in large data warehouses without affecting the table schema?

Q34
Single Choice

Which SQL command provides a performance advantage when clearing all rows in a very large table?

Q35
Single Choice

Which command will not remove constraints or indexes associated with a table?

Q36
Single Choice

Which command is more appropriate for clearing data from a table when the primary requirement is to preserve table structure?

Q37
Single Choice

Which SQL command is generally used when a large volume of data needs to be removed quickly without affecting indexes?

Q38
Single Choice

Which SQL command will maintain the table’s constraints and structure after removing all rows?

Q39
Single Choice

Which command is suitable for quickly removing all rows from a table without activating associated triggers?

Q40
Single Choice

Which SQL command is appropriate when you want to remove all data from a table and also reset the identity column values?

Q41
Multiple Choice

Which of the following are true about TRUNCATE TABLE? (Select all that apply)

Q42
Multiple Choice

Which scenarios are suitable for using TRUNCATE TABLE? (Select all that apply)

Q43
Multiple Choice

Which of the following statements are true about the limitations of TRUNCATE TABLE? (Select all that apply)

Q44
Multiple Choice

Which commands are similar in functionality to TRUNCATE TABLE? (Select all that apply)

Q45
Multiple Choice

Which statements about TRUNCATE TABLE and DELETE are true? (Select all that apply)