Microsoft SQL Server Database Quiz Questions

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

In SQL Server, a column defined as NULL can store missing or undefined values.

Q2
True / False

The NOT NULL constraint ensures that a column cannot accept NULL values.

Q3
True / False

NULL values in SQL Server are treated as equal to each other.

Q4
True / False

A column with a NULL value is included in the results of a COUNT function.

Q5
True / False

You can use the IS NULL condition to check for NULL values in a column.

Q6
True / False

The NOT NULL constraint can be applied to a column after table creation.

Q7
True / False

In SQL Server, NULL values are treated as zero during arithmetic operations.

Q8
True / False

NULL values are excluded from DISTINCT results in SQL Server.

Q9
True / False

A column with NOT NULL constraint must always have a value in every row.

Q10
True / False

The COALESCE function can be used to replace NULL values with a default value.

Q11
True / False

NULL values can be indexed in SQL Server.

Q12
True / False

SQL Server treats NULL values as different from any non-NULL value in comparisons.

Q13
True / False

A NULL value in SQL Server indicates a default value.

Q14
True / False

The NOT NULL constraint can be removed from a column by using the ALTER TABLE statement.

Q15
True / False

NULL values are excluded from aggregate functions like SUM and AVG in SQL Server.

Q16
Single Choice

Which SQL Server function is used to replace NULL values with a specified value?

Q17
Single Choice

Which of the following statements is true about NULL values in SQL Server?

Q18
Single Choice

Which of the following constraints ensures a column cannot accept NULL values?

Q19
Single Choice

What happens when a NULL value is used in a numeric operation in SQL Server?

Q20
Single Choice

Which SQL Server function can be used to handle NULL values and provide a default value?

Q21
Single Choice

Which of the following statements about NULL values in SQL Server is false?

Q22
Single Choice

Which of the following is the default value for a column if no constraint is applied?

Q23
Single Choice

Which SQL Server function can be used to compare values for NULL in a query?

Q24
Single Choice

What is the effect of applying the NOT NULL constraint to an existing column with NULL values?

Q25
Single Choice

Which SQL Server operator is used to check if a value is NULL?

Q26
Single Choice

Which of the following functions returns NULL if two values are equal?

Q27
Single Choice

Which of the following constraints can be applied to ensure a column always has a value?

Q28
Single Choice

How does SQL Server treat NULL values in a GROUP BY clause?

Q29
Single Choice

Which SQL Server function can replace NULL with a specified default value?

Q30
Single Choice

Which of the following statements about NULL values in SQL Server is true?

Q31
Multiple Choice

Which of the following are correct about NULL values in SQL Server?

Q32
Multiple Choice

Which functions can be used to handle NULL values in SQL Server?

Q33
Multiple Choice

Which SQL Server operators are used to handle NULL values?

Q34
Multiple Choice

Which constraints can be applied to ensure columns always have values?

Q35
Multiple Choice

Which scenarios in SQL Server will result in NULL values?

Q36
Multiple Choice

Which functions and operators are used to check for NULL values in SQL Server?

Q37
Multiple Choice

Which of the following can be used to handle NULL values in a query result?

Q38
Multiple Choice

Which aggregate functions ignore NULL values in SQL Server?

Q39
Multiple Choice

Which constraints or conditions are related to NULL values?

Q40
Multiple Choice

Which SQL Server functions return NULL under certain conditions?

Q41
Multiple Choice

Which of the following are true about NULL handling in SQL Server?

Q42
Multiple Choice

Which of the following statements about NULL values in SQL Server are true?

Q43
Multiple Choice

Which SQL Server constraints or conditions affect NULL values?

Q44
Multiple Choice

Which of the following functions are used to manage NULL values in SQL Server?

Q45
Multiple Choice

Which of the following scenarios result in NULL values in SQL Server?