NULL Handling interview questions

24 real NULL Handling questions from the SQL bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is NULL?

Junior
  1. A.the behavior whereby functions like SUM, AVG, and COUNT(column) silently ignore rows whose value is absent, while COUNT(*) still counts them
  2. B.a function returning the first non-missing value from its argument list, often used to substitute a default when a column has no value
  3. C.a marker representing a missing or unknown value rather than zero or an empty string
  4. D.a function returning the missing-value marker when its two arguments are equal and otherwise returning the first argument
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.NULL — the rule that GROUP BY and DISTINCT treat all missing-value markers as equal and collapse them into a single group, contrary to ordinary equality
  2. B.NULL — a marker representing a missing or unknown value rather than zero or an empty string
  3. C.NULL — the behavior whereby functions like SUM, AVG, and COUNT(column) silently ignore rows whose value is absent, while COUNT(*) still counts them
  4. D.NULL — the system in which a predicate may yield true, false, or unknown, so comparisons involving a missing value produce neither true nor false
Reveal the answer + AI explanation — free account

4. What is IS NULL?

Junior
  1. A.the system in which a predicate may yield true, false, or unknown, so comparisons involving a missing value produce neither true nor false
  2. B.a function returning the first non-missing value from its argument list, often used to substitute a default when a column has no value
  3. C.a function returning the missing-value marker when its two arguments are equal and otherwise returning the first argument
  4. D.the correct predicate for testing the absence of a value, since a normal equality comparison against the missing-value marker never evaluates to true
Reveal the answer + AI explanation — free account

5. Which term means: "the correct predicate for testing the absence of a value, since a normal equality comparison against the missing-value marker never evaluates to true"?

Junior
  1. A.aggregate NULL skipping
  2. B.three-valued logic
  3. C.NULLIF
  4. D.IS NULL
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.IS NULL — an ordering option controlling whether rows with a missing value sort before or after real values, since their default position varies by engine
  2. B.IS NULL — a function returning the missing-value marker when its two arguments are equal and otherwise returning the first argument
  3. C.IS NULL — the correct predicate for testing the absence of a value, since a normal equality comparison against the missing-value marker never evaluates to true
  4. D.IS NULL — the system in which a predicate may yield true, false, or unknown, so comparisons involving a missing value produce neither true nor false
Reveal the answer + AI explanation — free account

7. What is three-valued logic?

Mid
  1. A.the system in which a predicate may yield true, false, or unknown, so comparisons involving a missing value produce neither true nor false
  2. B.the behavior whereby functions like SUM, AVG, and COUNT(column) silently ignore rows whose value is absent, while COUNT(*) still counts them
  3. C.the correct predicate for testing the absence of a value, since a normal equality comparison against the missing-value marker never evaluates to true
  4. D.a function returning the missing-value marker when its two arguments are equal and otherwise returning the first argument
Reveal the answer + AI explanation — free account

8. Which term means: "the system in which a predicate may yield true, false, or unknown, so comparisons involving a missing value produce neither true nor false"?

Mid
  1. A.aggregate NULL skipping
  2. B.NULL
  3. C.IS NULL
  4. D.three-valued logic
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.three-valued logic — the system in which a predicate may yield true, false, or unknown, so comparisons involving a missing value produce neither true nor false
  2. B.three-valued logic — an ordering option controlling whether rows with a missing value sort before or after real values, since their default position varies by engine
  3. C.three-valued logic — the behavior whereby functions like SUM, AVG, and COUNT(column) silently ignore rows whose value is absent, while COUNT(*) still counts them
  4. D.three-valued logic — a function returning the missing-value marker when its two arguments are equal and otherwise returning the first argument
Reveal the answer + AI explanation — free account

10. What is COALESCE?

Junior
  1. A.the correct predicate for testing the absence of a value, since a normal equality comparison against the missing-value marker never evaluates to true
  2. B.the rule that GROUP BY and DISTINCT treat all missing-value markers as equal and collapse them into a single group, contrary to ordinary equality
  3. C.the system in which a predicate may yield true, false, or unknown, so comparisons involving a missing value produce neither true nor false
  4. D.a function returning the first non-missing value from its argument list, often used to substitute a default when a column has no value
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.COALESCE — an ordering option controlling whether rows with a missing value sort before or after real values, since their default position varies by engine
  2. B.COALESCE — a function returning the first non-missing value from its argument list, often used to substitute a default when a column has no value
  3. C.COALESCE — a function returning the missing-value marker when its two arguments are equal and otherwise returning the first argument
  4. D.COALESCE — a marker representing a missing or unknown value rather than zero or an empty string
Reveal the answer + AI explanation — free account

13. What is NULLIF?

Mid
  1. A.the behavior whereby functions like SUM, AVG, and COUNT(column) silently ignore rows whose value is absent, while COUNT(*) still counts them
  2. B.a function returning the missing-value marker when its two arguments are equal and otherwise returning the first argument
  3. C.the correct predicate for testing the absence of a value, since a normal equality comparison against the missing-value marker never evaluates to true
  4. D.a marker representing a missing or unknown value rather than zero or an empty string
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.NULLIF — the behavior whereby functions like SUM, AVG, and COUNT(column) silently ignore rows whose value is absent, while COUNT(*) still counts them
  2. B.NULLIF — a function returning the missing-value marker when its two arguments are equal and otherwise returning the first argument
  3. C.NULLIF — the correct predicate for testing the absence of a value, since a normal equality comparison against the missing-value marker never evaluates to true
  4. D.NULLIF — the rule that GROUP BY and DISTINCT treat all missing-value markers as equal and collapse them into a single group, contrary to ordinary equality
Reveal the answer + AI explanation — free account

16. What is aggregate NULL skipping?

Mid
  1. A.the behavior whereby functions like SUM, AVG, and COUNT(column) silently ignore rows whose value is absent, while COUNT(*) still counts them
  2. B.the correct predicate for testing the absence of a value, since a normal equality comparison against the missing-value marker never evaluates to true
  3. C.the system in which a predicate may yield true, false, or unknown, so comparisons involving a missing value produce neither true nor false
  4. D.a function returning the first non-missing value from its argument list, often used to substitute a default when a column has no value
Reveal the answer + AI explanation — free account

17. Which term means: "the behavior whereby functions like SUM, AVG, and COUNT(column) silently ignore rows whose value is absent, while COUNT(*) still counts them"?

Mid
  1. A.aggregate NULL skipping
  2. B.NULL
  3. C.NULLS FIRST
  4. D.NULL grouping equivalence
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.aggregate NULL skipping — the behavior whereby functions like SUM, AVG, and COUNT(column) silently ignore rows whose value is absent, while COUNT(*) still counts them
  2. B.aggregate NULL skipping — a function returning the missing-value marker when its two arguments are equal and otherwise returning the first argument
  3. C.aggregate NULL skipping — a function returning the first non-missing value from its argument list, often used to substitute a default when a column has no value
  4. D.aggregate NULL skipping — a marker representing a missing or unknown value rather than zero or an empty string
Reveal the answer + AI explanation — free account

19. What is NULL grouping equivalence?

Senior
  1. A.an ordering option controlling whether rows with a missing value sort before or after real values, since their default position varies by engine
  2. B.a function returning the missing-value marker when its two arguments are equal and otherwise returning the first argument
  3. C.the rule that GROUP BY and DISTINCT treat all missing-value markers as equal and collapse them into a single group, contrary to ordinary equality
  4. D.the correct predicate for testing the absence of a value, since a normal equality comparison against the missing-value marker never evaluates to true
Reveal the answer + AI explanation — free account

20. Which term means: "the rule that GROUP BY and DISTINCT treat all missing-value markers as equal and collapse them into a single group, contrary to ordinary equality"?

Senior
  1. A.NULL
  2. B.NULL grouping equivalence
  3. C.NULLS FIRST
  4. D.aggregate NULL skipping
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Senior
  1. A.NULL grouping equivalence — the behavior whereby functions like SUM, AVG, and COUNT(column) silently ignore rows whose value is absent, while COUNT(*) still counts them
  2. B.NULL grouping equivalence — a marker representing a missing or unknown value rather than zero or an empty string
  3. C.NULL grouping equivalence — the correct predicate for testing the absence of a value, since a normal equality comparison against the missing-value marker never evaluates to true
  4. D.NULL grouping equivalence — the rule that GROUP BY and DISTINCT treat all missing-value markers as equal and collapse them into a single group, contrary to ordinary equality
Reveal the answer + AI explanation — free account

22. What is NULLS FIRST?

Senior
  1. A.a function returning the first non-missing value from its argument list, often used to substitute a default when a column has no value
  2. B.the rule that GROUP BY and DISTINCT treat all missing-value markers as equal and collapse them into a single group, contrary to ordinary equality
  3. C.a marker representing a missing or unknown value rather than zero or an empty string
  4. D.an ordering option controlling whether rows with a missing value sort before or after real values, since their default position varies by engine
Reveal the answer + AI explanation — free account

23. Which term means: "an ordering option controlling whether rows with a missing value sort before or after real values, since their default position varies by engine"?

Senior
  1. A.NULL
  2. B.IS NULL
  3. C.NULLIF
  4. D.NULLS FIRST
Reveal the answer + AI explanation — free account

24. Which statement is correct?

Senior
  1. A.NULLS FIRST — an ordering option controlling whether rows with a missing value sort before or after real values, since their default position varies by engine
  2. B.NULLS FIRST — a function returning the missing-value marker when its two arguments are equal and otherwise returning the first argument
  3. C.NULLS FIRST — the rule that GROUP BY and DISTINCT treat all missing-value markers as equal and collapse them into a single group, contrary to ordinary equality
  4. D.NULLS FIRST — the behavior whereby functions like SUM, AVG, and COUNT(column) silently ignore rows whose value is absent, while COUNT(*) still counts them
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice NULL Handling free