logo

Cambridge IGCSE Computer Science practice

What is the main risk of using nested loops without proper conditions?

Try the question first, then check the answer and practise the same topic again.

At a glance

MCQ

Type

cambridge_mcq

Style

Topic

P rogramming concepts

Exam-style question

Try this first

What is the main risk of using nested loops without proper conditions?.

  1. A.Syntax error
  2. B.Infinite loop
  3. C.Compilation error
  4. 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.

Related flashcards

Flashcard 1 of 6

Press Space to flip, arrows to move

Related practice questions