Null Safety interview questions

18 real Null Safety questions from the Kotlin 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 Nullable type?

Junior
  1. A.a type marked with a trailing question mark that is permitted to hold a null reference
  2. B.the ?: syntax that supplies a fallback value when the left expression evaluates to null
  3. C.the !! syntax that forces a value to non-null and throws an exception if it is actually null
  4. D.a call combined with the safe operator that runs a block only when the receiver is non-null, exposing it as a parameter
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Nullable type — the ?. syntax that returns null instead of throwing when the receiver is absent
  2. B.Nullable type — a type coming from Java whose nullability is unknown to the compiler, shown with an exclamation mark
  3. C.Nullable type — a type marked with a trailing question mark that is permitted to hold a null reference
  4. D.Nullable type — the !! syntax that forces a value to non-null and throws an exception if it is actually null
Reveal the answer + AI explanation — free account

4. What is Safe call operator?

Junior
  1. A.a call combined with the safe operator that runs a block only when the receiver is non-null, exposing it as a parameter
  2. B.the ?. syntax that returns null instead of throwing when the receiver is absent
  3. C.a type marked with a trailing question mark that is permitted to hold a null reference
  4. D.the !! syntax that forces a value to non-null and throws an exception if it is actually null
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Safe call operator — a type coming from Java whose nullability is unknown to the compiler, shown with an exclamation mark
  2. B.Safe call operator — a type marked with a trailing question mark that is permitted to hold a null reference
  3. C.Safe call operator — a call combined with the safe operator that runs a block only when the receiver is non-null, exposing it as a parameter
  4. D.Safe call operator — the ?. syntax that returns null instead of throwing when the receiver is absent
Reveal the answer + AI explanation — free account

7. What is Elvis operator?

Mid
  1. A.the ?: syntax that supplies a fallback value when the left expression evaluates to null
  2. B.a type coming from Java whose nullability is unknown to the compiler, shown with an exclamation mark
  3. C.a type marked with a trailing question mark that is permitted to hold a null reference
  4. D.a call combined with the safe operator that runs a block only when the receiver is non-null, exposing it as a parameter
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Elvis operator — a type marked with a trailing question mark that is permitted to hold a null reference
  2. B.Elvis operator — a call combined with the safe operator that runs a block only when the receiver is non-null, exposing it as a parameter
  3. C.Elvis operator — the !! syntax that forces a value to non-null and throws an exception if it is actually null
  4. D.Elvis operator — the ?: syntax that supplies a fallback value when the left expression evaluates to null
Reveal the answer + AI explanation — free account

10. What is Not-null assertion operator?

Mid
  1. A.a type marked with a trailing question mark that is permitted to hold a null reference
  2. B.a call combined with the safe operator that runs a block only when the receiver is non-null, exposing it as a parameter
  3. C.the ?. syntax that returns null instead of throwing when the receiver is absent
  4. D.the !! syntax that forces a value to non-null and throws an exception if it is actually null
Reveal the answer + AI explanation — free account

11. Which term means: "the !! syntax that forces a value to non-null and throws an exception if it is actually null"?

Mid
  1. A.Not-null assertion operator
  2. B.Nullable type
  3. C.let scope function for nulls
  4. D.Elvis operator
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Not-null assertion operator — the !! syntax that forces a value to non-null and throws an exception if it is actually null
  2. B.Not-null assertion operator — the ?. syntax that returns null instead of throwing when the receiver is absent
  3. C.Not-null assertion operator — a type coming from Java whose nullability is unknown to the compiler, shown with an exclamation mark
  4. D.Not-null assertion operator — the ?: syntax that supplies a fallback value when the left expression evaluates to null
Reveal the answer + AI explanation — free account

13. What is let scope function for nulls?

Mid
  1. A.the ?. syntax that returns null instead of throwing when the receiver is absent
  2. B.a type marked with a trailing question mark that is permitted to hold a null reference
  3. C.a call combined with the safe operator that runs a block only when the receiver is non-null, exposing it as a parameter
  4. D.the !! syntax that forces a value to non-null and throws an exception if it is actually null
Reveal the answer + AI explanation — free account

14. Which term means: "a call combined with the safe operator that runs a block only when the receiver is non-null, exposing it as a parameter"?

Mid
  1. A.Nullable type
  2. B.Elvis operator
  3. C.Safe call operator
  4. D.let scope function for nulls
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.let scope function for nulls — a call combined with the safe operator that runs a block only when the receiver is non-null, exposing it as a parameter
  2. B.let scope function for nulls — the ?: syntax that supplies a fallback value when the left expression evaluates to null
  3. C.let scope function for nulls — a type marked with a trailing question mark that is permitted to hold a null reference
  4. D.let scope function for nulls — the ?. syntax that returns null instead of throwing when the receiver is absent
Reveal the answer + AI explanation — free account

16. What is Platform type?

Senior
  1. A.the ?: syntax that supplies a fallback value when the left expression evaluates to null
  2. B.a type coming from Java whose nullability is unknown to the compiler, shown with an exclamation mark
  3. C.a type marked with a trailing question mark that is permitted to hold a null reference
  4. D.a call combined with the safe operator that runs a block only when the receiver is non-null, exposing it as a parameter
Reveal the answer + AI explanation — free account

17. Which term means: "a type coming from Java whose nullability is unknown to the compiler, shown with an exclamation mark"?

Senior
  1. A.Platform type
  2. B.let scope function for nulls
  3. C.Safe call operator
  4. D.Elvis operator
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Senior
  1. A.Platform type — the !! syntax that forces a value to non-null and throws an exception if it is actually null
  2. B.Platform type — a type coming from Java whose nullability is unknown to the compiler, shown with an exclamation mark
  3. C.Platform type — the ?. syntax that returns null instead of throwing when the receiver is absent
  4. D.Platform type — a call combined with the safe operator that runs a block only when the receiver is non-null, exposing it as a parameter
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 Safety free