Q1
True / FalseDEFAULT constraints can be used to provide a default value for a column when no value is specified during an INSERT.
DEFAULT constraints specify a default value that will be used when no value is provided.
Q2
True / FalseA DEFAULT constraint can be used to automatically increment a numeric column.
DEFAULT constraints cannot automatically increment a column; this requires an IDENTITY property.
Q3
True / FalseDEFAULT constraints can be applied to columns of any data type.
DEFAULT constraints can be applied to any data type except columns that have computed values.
Q4
True / FalseA column with a DEFAULT constraint cannot also have a NOT NULL constraint.
A column with a DEFAULT constraint can also have a NOT NULL constraint.
Q5
True / FalseDEFAULT constraints are ignored if a value is explicitly provided during an INSERT operation.
DEFAULT constraints are used only when no value is provided during an INSERT operation.
Q6
True / FalseDEFAULT constraints can be used to assign default values to existing rows in a table.
DEFAULT constraints are applied only to new rows; existing rows are not affected.
Q7
True / FalseDEFAULT constraints can include expressions or functions to compute default values.
DEFAULT constraints can use expressions or functions to determine default values.
Q8
True / FalseA DEFAULT constraint can be removed from a column using the ALTER TABLE statement.
DEFAULT constraints can be dropped using the ALTER TABLE statement.
Q9
True / FalseDEFAULT constraints are applied only when the column value is NULL during an INSERT operation.
DEFAULT constraints are applied when no value is provided, regardless of NULL or non-NULL values.
Q10
True / FalseDEFAULT constraints cannot be used in combination with IDENTITY properties.
DEFAULT constraints and IDENTITY properties can be used together, but serve different purposes.
Q11
True / FalseThe DEFAULT constraint can be used to specify a default value for a foreign key column.
DEFAULT constraints can be used on foreign key columns just like other columns.
Q12
True / FalseDEFAULT constraints are automatically enforced by the SQL Server database engine.
DEFAULT constraints are enforced automatically when rows are inserted or updated.
Q13
True / FalseThe DEFAULT constraint can be used to enforce a value format, such as date or numeric format.
DEFAULT constraints can set default values but do not enforce value formats.
Q14
True / FalseDEFAULT constraints cannot be applied to columns that already have a default value specified.
DEFAULT constraints can be added to columns even if they already have a default value.
Q15
True / FalseDEFAULT constraints are useful for ensuring that a column always has a value, even if none is provided during an INSERT.
DEFAULT constraints provide a default value when none is specified during an INSERT.