NIELIT O Level Exam

What will be the step of the interpreter in a jump statement when an exception is thrown?

What will be the step of the interpreter in a jump statement when an exception is thrown?

जब एक अपवाद फेंका जाता है तो जंप स्टेटमेंट में इंटरप्रेटर का स्टेप क्या होगा?

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 is :

C. The interpreter jumps to the nearest enclosing exception handler



Explanation
When an exception is thrown in a jump statement, the interpreter jumps to the nearest enclosing exception handler, which may be in the same function or up the call stack in an invoking function.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad