Skip to content

Commit 9328dbc

Browse files
author
Anass Rach
committed
Fix missing quotes!
1 parent 40f4549 commit 9328dbc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

_data/quiz/questions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@
312312
- "Dad"
313313
- "null"
314314
- "Mom"
315-
- None of the above
315+
- "None of the above"
316316
correct: 1
317317
explanation: "TreeMap orders keys naturally. firstKey() returns the smallest key: Dad."
318318
category: "Collections"
@@ -436,7 +436,7 @@
436436
- "UsingClosedFinally"
437437
- "UsingClosed"
438438
- "FinallyClosedUsing"
439-
- None of the above
439+
- "None of the above"
440440
correct: 2
441441
explanation: "Even when the resource is declared outside the try (Java 9+ feature), try-with-resources still calls close() after the try block completes. Then the finally block executes. So the output order is 'Using' (try body) → 'Closed' (resource auto-close) → 'Finally' (finally block)."
442442
category: "Exceptions"
@@ -658,7 +658,7 @@
658658
- "5 11 5 Total: 12"
659659
- "5 10 0 Total: 8"
660660
- "4 11 0 Total: 7"
661-
- None of the above
661+
- "None of the above"
662662
correct: 0
663663
explanation: "For loop runs twice: First iteration: ++parents makes parents=5, children=0+5=5, prints '5'. Second iteration: ++parents makes parents=6, children=5+6=11, prints '11'. While loop: children-- > 8 checks 11>8 (true), then decrements children to 10. Inside loop: uncles=10, children=10-10=0, uncles++ doesn't affect children, prints '0'. Next check: 0>8 is false, loop exits. Final: grandparents=2, parents=6, children=-1 (from the failed while condition). Total: 2+6+(-1)=7."
664664
category: "Operators and Control Flow"

0 commit comments

Comments
 (0)