12 Control Flow 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.
A.the use of a conditional that yields a value directly, removing the need for a ternary operator
B.a multi-branch construct that returns a value and can replace a chain of conditional checks
C.a progression of values created with the dotted operator and commonly iterated in a loop
D.the requirement that every possible case of a sealed type or enum be handled when the result is used
Answer + AI explanation with Pro
2. Which term means: "a multi-branch construct that returns a value and can replace a chain of conditional checks"?
Junior
A.if as expression
B.Range
C.when expression
D.Exhaustive branching
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.when expression — the requirement that every possible case of a sealed type or enum be handled when the result is used
B.when expression — a progression of values created with the dotted operator and commonly iterated in a loop
C.when expression — the use of a conditional that yields a value directly, removing the need for a ternary operator
D.when expression — a multi-branch construct that returns a value and can replace a chain of conditional checks
Answer + AI explanation with Pro
4. What is Range?
Junior
A.the use of a conditional that yields a value directly, removing the need for a ternary operator
B.the requirement that every possible case of a sealed type or enum be handled when the result is used
C.a progression of values created with the dotted operator and commonly iterated in a loop
D.a multi-branch construct that returns a value and can replace a chain of conditional checks
Answer + AI explanation with Pro
5. Which term means: "a progression of values created with the dotted operator and commonly iterated in a loop"?
Junior
A.when expression
B.if as expression
C.Exhaustive branching
D.Range
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Range — the requirement that every possible case of a sealed type or enum be handled when the result is used
B.Range — a progression of values created with the dotted operator and commonly iterated in a loop
C.Range — the use of a conditional that yields a value directly, removing the need for a ternary operator
D.Range — a multi-branch construct that returns a value and can replace a chain of conditional checks
Answer + AI explanation with Pro
7. What is if as expression?
Junior
A.a multi-branch construct that returns a value and can replace a chain of conditional checks
B.the use of a conditional that yields a value directly, removing the need for a ternary operator
C.a progression of values created with the dotted operator and commonly iterated in a loop
D.the requirement that every possible case of a sealed type or enum be handled when the result is used
Answer + AI explanation with Pro
8. Which term means: "the use of a conditional that yields a value directly, removing the need for a ternary operator"?
Junior
A.if as expression
B.Exhaustive branching
C.Range
D.when expression
Answer + AI explanation with Pro
9. Which statement is correct?
Junior
A.if as expression — a multi-branch construct that returns a value and can replace a chain of conditional checks
B.if as expression — the use of a conditional that yields a value directly, removing the need for a ternary operator
C.if as expression — the requirement that every possible case of a sealed type or enum be handled when the result is used
D.if as expression — a progression of values created with the dotted operator and commonly iterated in a loop
Answer + AI explanation with Pro
10. What is Exhaustive branching?
Mid
A.the use of a conditional that yields a value directly, removing the need for a ternary operator
B.the requirement that every possible case of a sealed type or enum be handled when the result is used
C.a multi-branch construct that returns a value and can replace a chain of conditional checks
D.a progression of values created with the dotted operator and commonly iterated in a loop
Answer + AI explanation with Pro
11. Which term means: "the requirement that every possible case of a sealed type or enum be handled when the result is used"?
Mid
A.Exhaustive branching
B.when expression
C.Range
D.if as expression
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Exhaustive branching — a multi-branch construct that returns a value and can replace a chain of conditional checks
B.Exhaustive branching — a progression of values created with the dotted operator and commonly iterated in a loop
C.Exhaustive branching — the requirement that every possible case of a sealed type or enum be handled when the result is used
D.Exhaustive branching — the use of a conditional that yields a value directly, removing the need for a ternary operator
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 Control Flow question come with Pro.