MCQ Practice Single Best Answer Topic: ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOL

Q What type of loop is this:

for (i = 5; i <= 100; i = i + 5) { 
    System.out.println(i);
}

Question ID
#23879
Subchapter
ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOL
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A Delay loop
  • B Step loop
  • C Continuous loop
  • D Null loop
Correct Answer: B

Explanation

Explanation:

 

In this loop, the variable i increments by a fixed step (i = i + 5) in each iteration.

Such a loop is called a step loop because it progresses by a specific step val

ue.

Share This Question

Share this MCQ with your friends or study group.