CBSE Class 12 Computer Science Exception Handling In Java MCQs Set C

CBSE Class 12 Computer Science Exception Handling In Java MCQs Set C with answers available in Pdf for free download. The MCQ Questions for Class 12 Computer Science with answers have been prepared as per the latest syllabus, NCERT books and examination pattern suggested in Standard 12 by CBSE, NCERT and KVS. Multiple Choice Questions are an important part of exams for Grade 12 Computer Science and if practiced properly can help you to get higher marks. Refer to more Chapter-wise MCQs for NCERT Class 12 Computer Science and also download more latest study material for all subjects

Exception Handling In Java Class 12 Computer Science MCQ

Class 12 Computer Science students should refer to the following multiple-choice questions with answers for Exception Handling In Java in standard 12. These MCQ questions with answers for Grade 12 Computer Science will come in exams and help you to score good marks

Exception Handling In Java MCQ Questions with Answers

Question: The code that generates exception should be written within the______

  • a) Try block
  • b) Catch block
  • c) Finally block
  • d) All of these

Answer: Try block


Question: There can be multiple________to handle each type of exception separately.

  • a) Try blocks
  • b) Catch blocks
  • c) Finally blocks
  • d) All of these

Answer: Catch blocks


Question: The last______can handle any type of exception.

  • a) Try block
  • b) Catch block
  • c) Finally block
  • d) None of these

Answer: Catch block


Question: The catch block, must be the last block when there are multiple catch blocks.

  • a) First
  • b) Second
  • c) Third
  • d) Default

Answer: Default


Question: While writing the program, the order of the specific catch blocks does not matter but the______block has to be placed at the end of all catch blocks.

  • a) First
  • b) Second
  • c) Third
  • d) Default

Answer: Default


Question: _______try blocks can be nested together, but care must be taken to write a corresponding catch block for each try block.

  • a) Various
  • b) Single
  • c) Multiple
  • d) Some

Answer: Multiple


Question: The_______is generally used to clean up the end of executing a try block.

  • a) Try block
  • b) Catch block
  • c) Finally block
  • d) All of these

Answer: Finally block


Question: A________is used when the programmer wants to be sure that some particular code is to be run, no matter what exceptions are thrown within the associated try block.

  • a) Try block
  • b) Catch block
  • c) Finally block
  • d) All of these

Answer: Finally block


Question: A________is always executed, regardless of whether or not exceptions are thrown during the execution of the associated try block.

  • a) Try block
  • b) Catch block
  • c) Finally block
  • d) All of these

Answer: Finally block


Question: A______is widely used if a file needs to be closed or a critical resource is to be released at the completion of the program.

  • a) Try block
  • b) Catch block
  • c) Finally block
  • d) All of these

Answer: Finally block


More Questions.....................


Question: Each try block must always be followed by at least________that is either a catch block or a finally block.

  • a) One block
  • b) Two blocks
  • c) Three blocks
  • d) None of these

Answer: One block


Question: However, in the presence of______the program executes the statements within the finally block before it gets terminated.

  • a) Try block
  • b) Catch block
  • c) Finally block
  • d) All of these

Answer: Finally block


Question: A________is associated with a particular try block and it must be located immediately following any catch blocks for the corresponding try block.

  • a) Finally block
  • b) Catch block
  • c) Try block
  • d) None of these

Answer: Finally block


Question: If there are no______then the finally block can be positioned immediately after the try block.

  • a) Try blocks
  • b) Catch blocks
  • c) Finally blocks
  • d) None of these

Answer: Catch blocks


Question: If the finally block or catch blocks are not positioned correctly, then the program will not

  • a) Compile
  • b) Interpret
  • c) Translate
  • d) Decode

Answer: Compile


Question: The_______keyword is used to explicitly throw an Exception object.

  • a) Throws
  • b) Throws
  • c) Throw
  • d) Try

Answer: Throw


Question: For example, an object of______was created when one tries to perform a divide by zero operation.

  • a) Array lndex Out Of Bounds Exception
  • b) Arithmetic Exception
  • c) File Not Found Exception
  • d) None of these

Answer: Arithmetic Exception


Question: Java does provide mechanism to create an______object and throw it explicitly.

  • a) Illusion
  • b) Exclusion
  • c) Error
  • d) Exception

Answer: Exception


Question: The object that one throws, must be of type of java.lang________, otherwise a compile error occurs.

  • a) Throwable
  • b) Throws
  • c) Throw
  • d) Throws

Answer: Throwable


Question: The syntax to throw an exception object is

  • a) Throw exception_object;
  • b) Throws exception_object;
  • c) Throws exception_object
  • d) Throw object;

Answer: Throw exception_object;


Question: When a_______statement is encountered, a search for matching catch block begins.

  • a) Throwable
  • b) Throws
  • c) throw
  • d) Throws

Answer: throw


Question: Any subsequent statements in the_______are not executed.

  • a) Try block
  • b) Try or catch block
  • c) Catch block
  • d) Try or finally block

Answer: Try or catch block


Question: There are______alternative approaches to handle, when an exception occurs in a method or a constructor.

  • a) One
  • b) Two
  • c) Three
  • d) Four

Answer: Two


Question: A_______clause can be used in a method declaration or constructor declaration to inform that the code within the constructor or method may throw an Exception.

  • a) Throwable
  • b) Throws
  • c) throw
  • d) throws

Answer: throws


Question: When a______or a method that can throw exceptions is written to its caller, it is useful to document that fact.

  • a) Constructor
  • b) Variable
  • c) Operator
  • d) Compiler

Answer: Constructor


Question: The________keyword is used with the declaration of method.

  • a) Throwable
  • b) Throws
  • c) throw
  • d) throws

Answer: Throwable


Question: A_______can throw multiple exceptions.

  • a) Method
  • b) Variable
  • c) Operator
  • d) Compiler

Answer: Method


Question: Each type of______that a method can throw must be stated in the method header.

  • a) Declaration
  • b) Variable
  • c) Error
  • d) Exception

Answer: Exception


Question: _______allows creating own exception classes according to application-specific problems.

  • a) C ++
  • b) C
  • c) Java
  • d) PHP

Answer: Java


Question: _______does not provide built-in exception classes for application specific exceptions.

  • a) C ++
  • b) C
  • c) Java
  • d) PHP

Answer: Java

Tags: 

 


Click for more Computer Science Study Material
Cascading Style Sheets and JavaScript
CBSE Class 12 Computer Science Cascading Style Sheets and JavaScript MCQs Set C
CBSE Class 12 Computer Science Cascading Style Sheets and JavaScript MCQs Set D
CBSE Class 12 Computer Science Cascading Style Sheets and JavaScript MCQs Set A
CBSE Class 12 Computer Science Cascading Style Sheets and JavaScript MCQs Set B
Classes and Objects In Java
CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set B
CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set C
CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set D
CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set A
Creating HTML Forms Using KompoZer
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set F
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set G
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set A
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set H
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set B
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set I
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set C
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set D
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set E
Designing Simple Website Using Kompozer
CBSE Class 12 Computer Science Designing Simple Website Using Kompozer MCQs Set A
CBSE Class 12 Computer Science Designing Simple Website Using Kompozer MCQs Set C
CBSE Class 12 Computer Science Designing Simple Website Using Kompozer MCQs Set B
CBSE Class 12 Computer Science Designing Simple Website Using Kompozer MCQs Set D
Exception Handling In Java
CBSE Class 12 Computer Science Exception Handling In Java MCQs Set A
CBSE Class 12 Computer Science Exception Handling In Java MCQs Set B
CBSE Class 12 Computer Science Exception Handling In Java MCQs Set C
CBSE Class 12 Computer Science Exception Handling In Java MCQs Set D
File Handling
CBSE Class 12 Computer Science File Handling MCQs Set C
CBSE Class 12 Computer Science File Handling MCQs Set D
CBSE Class 12 Computer Science File Handling MCQs Set E
CBSE Class 12 Computer Science File Handling MCQs Set F
CBSE Class 12 Computer Science File Handling MCQs Set B
CBSE Class 12 Computer Science File Handling MCQs Set A
File System
CBSE Class 12 Computer Science File System MCQs Set B
CBSE Class 12 Computer Science File System MCQs Set C
CBSE Class 12 Computer Science File System MCQs Set D
CBSE Class 12 Computer Science File System MCQs Set E
CBSE Class 12 Computer Science File System MCQs Set F
CBSE Class 12 Computer Science File System MCQs Set A
Introduction To E Commerce
CBSE Class 12 Computer Science Introduction To E Commerce MCQs Set A
CBSE Class 12 Computer Science Introduction To E Commerce MCQs Set B
CBSE Class 12 Computer Science Introduction To E Commerce MCQs Set C
CBSE Class 12 Computer Science Introduction To E Commerce MCQs Set D
CBSE Class 12 Computer Science Introduction To E Commerce MCQs Set E
Introduction To M Commerce
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set C
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set D
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set E
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set F
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set G
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set A
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set H
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set B
Java Basics
CBSE Class 12 Computer Science Java Basics MCQs Set D
CBSE Class 12 Computer Science Java Basics MCQs Set E
CBSE Class 12 Computer Science Java Basics MCQs Set A
CBSE Class 12 Computer Science Java Basics MCQs Set B
CBSE Class 12 Computer Science Java Basics MCQs Set F
CBSE Class 12 Computer Science Java Basics MCQs Set C
CBSE Class 12 Computer Science Java Basics MCQs Set G
Object Oriented Concepts
CBSE Class 12 Computer Science Object Oriented Concepts MCQs Set A
CBSE Class 12 Computer Science Object Oriented Concepts MCQs Set B
CBSE Class 12 Computer Science Object Oriented Concepts MCQs Set C
CBSE Class 12 Computer Science Object Oriented Concepts MCQs Set D
CBSE Class 12 Computer Science Object Oriented Concepts MCQs Set E
Publishing Documents Using Latex
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set C
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set D
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set E
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set F
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set G
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set A
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set H
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set B

Latest NCERT & CBSE News

Read the latest news and announcements from NCERT and CBSE below. Important updates relating to your studies which will help you to keep yourself updated with latest happenings in school level education. Keep yourself updated with all latest news and also read articles from teachers which will help you to improve your studies, increase motivation level and promote faster learning

Score well in Class 12 English Boards Exam

12th Board exams are an important part of students' lives. The marks obtained in the board exam decide the college in which one can study. In class 12 the syllabus of each and every subject increases vastly and it is difficult to cover up every point. In English also...

MCQ Question based CBSE examination

For 2021-22 CBSE has launched MCQ question-based examination for Term 1 & Term 2 board examinations. The entire syllabus has been divided into two parts each including 50% of the entire syllabus. To score well, students must practice as per the new CBSE term-wise...

CBSE Class 10 Revised Syllabus

Last year CBSE had to reduce the syllabus because of the pandemic situation but it was not very effective because there were no examinations. This year to avoid any confusion and conflict, CBSE has decided to reduce the syllabus into term 1 and term 2. 50 percent of...

How To Solve Unseen Passages In English

Unseen passages may contain one or many paragraphs. This is one of the important yet easy parts for a student to get marks. Students should thoroughly study and understand the passage to answer the related questions. The unseen passages are there just to test the...

×
Studies Today