Q1
True / FalseIn SQL Server, a column defined as NULL can store missing or undefined values.
A NULL value represents missing or undefined data.
Q2
True / FalseThe NOT NULL constraint ensures that a column cannot accept NULL values.
The NOT NULL constraint enforces that a column must always have a value.
Q3
True / FalseNULL values in SQL Server are treated as equal to each other.
NULL values are considered as unknown, so they are not equal to each other.
Q4
True / FalseA column with a NULL value is included in the results of a COUNT function.
The COUNT function does not include NULL values unless it is COUNT(*).
Q5
True / FalseYou can use the IS NULL condition to check for NULL values in a column.
The IS NULL condition is used to test for NULL values in SQL Server.
Q6
True / FalseThe NOT NULL constraint can be applied to a column after table creation.
The NOT NULL constraint can be added or modified after table creation using an ALTER TABLE statement.
Q7
True / FalseIn SQL Server, NULL values are treated as zero during arithmetic operations.
NULL values are not treated as zero; they propagate through arithmetic operations and result in NULL.
Q8
True / FalseNULL values are excluded from DISTINCT results in SQL Server.
DISTINCT includes NULL values; it only filters out duplicate non-NULL values.
Q9
True / FalseA column with NOT NULL constraint must always have a value in every row.
The NOT NULL constraint enforces that each row must have a value for that column.
Q10
True / FalseThe COALESCE function can be used to replace NULL values with a default value.
The COALESCE function returns the first non-NULL value among its arguments, replacing NULLs with a default.
Q11
True / FalseNULL values can be indexed in SQL Server.
SQL Server allows indexing of columns with NULL values, although the handling might differ.
Q12
True / FalseSQL Server treats NULL values as different from any non-NULL value in comparisons.
NULL is considered unknown and cannot be compared directly to other values; it always results in unknown.
Q13
True / FalseA NULL value in SQL Server indicates a default value.
NULL represents an absence of value, not a default value.
Q14
True / FalseThe NOT NULL constraint can be removed from a column by using the ALTER TABLE statement.
The ALTER TABLE statement can modify column constraints, including removing the NOT NULL constraint.
Q15
True / FalseNULL values are excluded from aggregate functions like SUM and AVG in SQL Server.
Aggregate functions like SUM and AVG ignore NULL values in their calculations.