JavaScript MCQ Javascript loops MCQ Question #5069
Single Choice Easy

QWhen an exception is thrown, what step will the interpreter take?

ID: #5069 Javascript loops MCQ 127 views
Question Info
#5069Q ID
EasyDifficulty
Javascript loops MCQTopic

Choose the Best Option

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

  • A The interpreter stops its work
  • B The interpreter throws another exception
  • C The interpreter jumps to the nearest enclosing exception handler
  • D The interpreter throws an error
Correct Answer

Explanation

When an exception is raised in a jump statement, the interpreter will navigate to the closest exception handler, this handler could be located either in the same function or in an outer function that invoked it.

Share This Question

Challenge a friend or share with your study group.