Exam-style question
Try this first
What is the main risk of using nested loops without proper conditions?.
- A.Syntax error
- B.Infinite loop
- C.Compilation error
- D.Logical error
Answer and explanation
Concise answer
Infinite loop
Why this is correct
If a nested loop does not have a proper exit condition, it can run indefinitely, causing the program to hang.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
