MCQ
Single Best Answer
Moderate
QWhat type of loop is this:
for (i = 5; i <= 100; i = i + 5) {
System.out.println(i);
}
ID: #23879
ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOL
83 views
Question Info
#23879Q ID
ModerateDifficulty
ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOLTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option 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.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic