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

Q How many times is the inner loop executed?

for (k = 1; k <= 2; k++) { 
    for (m = 1; m <= 4; m++) { 
        System.out.println(m * 2);
    } 
}

Question ID
#23877
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 4 times
  • B 2 times
  • C 8 times
  • D 16 times
Correct Answer: C

Explanation

Share This Question

Share this MCQ with your friends or study group.