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

CBSE Class 12 Computer Science Exception Handling In Java MCQs Set B 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 2021 syllabus, NCERT books and examination pattern suggested in Standard 12 by CBSE, NCERT and KVS. Multiple Choice Questions for 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

Question: The following code will result in Exception. int numerator = 15; int denominator = 0; answer; answer = numerator / denominator;

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

Answer: Arithmetic Exception


Question: What is the full form of JVM ?

  • a) Java Virtual Mechanism
  • b) Java Virtual Method
  • c) Java Virtual Machine
  • d) Java Virtual Manner

Answer: Java Virtual Machine


Question: An______is an error condition.

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

Answer: Exception


Question: ________handling is an object-oriented technique for managing errors.

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

Answer: Exception


Question: While performing exception handling, one has to try to ensure that the program does not______abruptly nor does it generate unexpected output.

  • a) Terminate
  • b) Finish
  • c) Dismiss
  • d) Discharge

Answer: Terminate


Question: Java uses keywords like_______to write an exception handler.

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

Answer: All of these


Question: The keywords______are used in the presence of exceptions, these keywords represent block of statements.

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

Answer: All of these


Question: A______contains the code that may give rise to one or more exceptions.

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

Answer: Try block


Question: A________contains the code that is intended to handle exceptions of a particular type that were created in the associated try block.

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

Answer: Catch block


Question: A_______is always executed before the program ends, regardless of whether any exceptions are generated in the try block or not.

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

Answer: Finally block


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


Question: The______statement contains a block of statements within the braces.

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

Answer: Try


Question: A______block may give rise to one or more exceptions.

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

Answer: Try


Question: The code between a try block creates a.......... exception.

  • a) Double
  • b) Single
  • c) Triple
  • d) None of these

Answer: Single


Question: The_______must immediately follow the try block.

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

Answer: Catch block


Question: _______contains the code that is to be created to handle an exception.

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

Answer: Catch block


Question: The______is an exception handler.

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

Answer: Catch block


Question: For a______try block there can be one or more catch blocks.

  • a) Single
  • b) Double
  • c) Tirple
  • d) None of these

Answer: Single


Question: A catch block consists of the keyword catch followed by a single______

  • a) Operator
  • b) Method
  • c) Block
  • d) Parameter

Answer: Parameter


Question: The catch code to handle exception has to be written between_________

  • a) Codes
  • b) Blocks
  • c) Parentheses
  • d) Parameters

Answer: Parentheses


Question: The_______identifies the type of exception that the block is to deal with.

  • a) Operator
  • b) Method
  • c) Block
  • d) Parameter

Answer: Parameter


Question: Java supports______types of exceptions

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

Answer: Various


Question: Any program which tries to access array element by specifying index position that is outside the range leads to an_______

  • a) Illegal message
  • b) Exclusion
  • c) Error
  • d) Exception

Answer: Exception


Question: When above kind of exception occurs, an object of type is created and is thrown.

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

Answer: Array lndex Out Of Bounds Exception


Question: A corresponding_______handles the above exception and does not allow the program to terminate unexpectedly.

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

Answer: Catch block


Question: The catch block contains a______to object "eobj" which is created and thrown by the try block.

  • a) Space
  • b) Cell
  • c) Memory
  • d) Reference

Answer: Reference


Question: In a single program_______exceptions can occur.

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

Answer: Multiple


Question: If a particular file has to be uploaded to a remote computer, it may lead to_______distinct exceptions.

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

Answer: Two


Question: If a particular file has to be uploaded to a remote computer, an exception may occur if the file is not present in the_______

  • a) Computer
  • b) Network
  • c) Internet
  • d) System

Answer: Computer


Question: If a particular file has to be uploaded to a remote computer, another exception may occur if the computer is not connected to the________

  • a) Computer
  • b) Network
  • c) Internet
  • d) System

Answer: Network


Question: There is a provision in Java to support______exceptions.

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

Answer: Multiple

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 A
CBSE Class 12 Computer Science Cascading Style Sheets and JavaScript MCQs Set B
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
Classes and Objects In Java
CBSE Class 12 Computer Science Classes and Objects In Java MCQs Set A
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
Creating HTML Forms Using KompoZer
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 B
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
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 H
CBSE Class 12 Computer Science Creating HTML Forms Using KompoZer MCQs Set I
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 B
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 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 A
CBSE Class 12 Computer Science File Handling MCQs Set B
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
File System
CBSE Class 12 Computer Science File System MCQs Set A
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
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 A
CBSE Class 12 Computer Science Introduction To M Commerce MCQs Set B
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 H
Java Basics
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 C
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 F
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 A
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set B
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 H

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

FAQs on Policy for Tabulation of Marks for Class 10 Board Exams

ON POLICY Question.1 How CBSE will declare the result of Class-X? Answer. Results of Class X Board will be declared on the basis of an objective criterion developed by the Board vide Notification no.CBSE/CE/2021 dated 01.05.2021. Question.2. If any candidate is not...

Moderation of Marks Class 11 and 12 Board Exams

The portal for moderation and finalization of results for Class-12 is being opened from 16.07.2021 to 22.07.2021. As Board has to declare the result latest by 31.07.2021, schools have been requested to follow the schedule strictly and complete the moderation within...

CBSE asks schools to load Class 12 Internal Assessment Marks

This has a reference to the letter no CBSE/COORD/2021 dated 11.02.2021 regarding conduct of the School-Based Assessment (Internal Assessment/Practical/ Project) of Class-XII and uploading the marks by 11.06.2021. It has been observed that some schools have not been...

CBSE Board Examination Scheme of Assessment 2021 2022

A. Academic session to be divided into 2 Terms with approximately 50% syllabus in each term: The syllabus for the Academic session 2021-22 will be divided into 2 terms by following a systematic approach by looking into the interconnectivity of concepts and topics by...

CBSE Class 12 Evaluation Criteria 2021

SUMMARY OF THE POLICY FOR TABULATION OF MARKS FOR CLASS XII BOARD EXAMINATIONS 2021   1(a) Due to cancellation of the Board examinations, the assessment of theory portion of 80/70/60/50/30 marks will be done by the school based on the following:     Class...

×
Studies Today