Paper Tayyari

Lecture 35: Exception Handling

MCQs, short and long questions from lecture 35.Lecture 35 ki MCQs, short aur long sawal.

8 MCQs · 2 short questions · 8 MCQs from past papers8 MCQs · 2 short sawal · 8 MCQs past papers se

Start mock testMock test shuru karein
DoneHal kiye 0/8
– correctsahi
1.
★ VU quiz

The raising of the imaginary error flag is simply called raising or ________ an error .

  1. ACatching
  2. BCasting
  3. CThrowing
  4. DNone of given options

Raising the error flag is called throwing an exception.

2.
★ VU quiz

The idea behind exception handling is to raise some error flag every time ________ .

  1. AThe code compiles
  2. BThe code links
  3. CMemory is allocated
  4. DSomething goes wrong

An exception is raised whenever something goes wrong.

3.
★ VU quiz

Exception handling is a powerful technique that separates error-handling code from ______ code.

  1. ANormal
  2. BFaulty
  3. CBuggy
  4. DComplex

Exception handling separates error-handling code from the normal code.

4.
★ VU quiz

The complexity of a program may ______ if there are exceptional paths in it

  1. ADecrease
  2. BIncrease
  3. CRemain same
  4. DAll of given options

Exceptional paths add hidden execution paths, which increases complexity.

5.
★ VU quiz

When an error is thrown the overall system (on the lookout for this error flag) responds by ______ the error .

  1. AIgnoring
  2. BCasting
  3. CCatching
  4. DAll of the given options

The system responds to a thrown error by catching it.

6.
★ Final term Spring 2010

A number of invisible execution paths can exist in simple code in a language that allows --------------

  1. Aexceptions
  2. Bdefects
  3. Cerrors
  4. Dall of them

Exceptions create hidden execution paths in otherwise simple code.

7.
★ Final term Fall 2008

------------- is a powerful technique that separates error-handling code from normal code.

  1. AException handling
  2. BCode handling
  3. Cvariable handling
  4. Dpointer handling

Exception handling separates error-handling code from the normal code.

8.
★ VU quiz

Exception handling provides:

  1. APortability mechanism
  2. BCode Usability mechanism
  3. CError Handling mechanism
  4. DAll of the given options

Exception handling is a mechanism for handling errors.