ICSE Class 10 Computer Applications Question 46 of 69

Iterative Constructs in Java — Question 1

Back to all questions
1
Question

Question 1

Which of the following segment can be omitted in a for loop?

  1. initialisation
  2. test condition
  3. update expression
  4. All of these
Answer

All of these

Reason — A for loop can also be written as for( ; ; ) within the program code.