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

Q The statement to stop the execution of a construct:

Question ID
#23882
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 System.exit(0)
  • B break
  • C stop
  • D end
Correct Answer: B

Explanation

Explanation:

 

The break statement is used to stop the execution of a loop or switch construct.

System.exit(0) stops the entire program, not just a construct.

Share This Question

Share this MCQ with your friends or study group.