Null Safety interview questions

18 Null Safety questions from the Kotlin bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

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

Answer + AI explanation with Pro

2. Which term means: "a type marked with a trailing question mark that is permitted to hold a null reference"?

Junior
  1. A.let scope function for nulls
  2. B.Elvis operator
  3. C.Safe call operator
  4. D.Nullable type

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

5. Which term means: "the ?. syntax that returns null instead of throwing when the receiver is absent"?

Junior
  1. A.let scope function for nulls
  2. B.Platform type
  3. C.Elvis operator
  4. D.Safe call operator

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

8. Which term means: "the ?: syntax that supplies a fallback value when the left expression evaluates to null"?

Mid
  1. A.Nullable type
  2. B.let scope function for nulls
  3. C.Elvis operator
  4. D.Safe call operator

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Null Safety question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers