MCQ Single Best Answer Moderate

QThe statement to stop the execution of a construct:

ID: #23882 ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOL 103 views
Question Info
#23882Q ID
ModerateDifficulty
ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOLTopic

Choose the Best Option

Click any option to instantly check if you're correct.

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

Challenge a friend or share with your study group.