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

CBSE Class 12 Computer Science Exception Handling In Java MCQs Set A 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: It is usually understood that a compiled program is error free and will always______successfully.

  • a) Complete
  • b) Execute
  • c) Perform
  • d) Accomplish

Answer: Execute


Question: In few cases a compiled program can_______while it its executing.

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

Answer: Terminate


Question: The_______in a program results in an abnormal execution and it may lead to abnormal termination of the program.

  • a) Exception
  • b) Error
  • c) Message
  • d) Mistake

Answer: Exception


Question: An is an indication of a problem thatc occurs during a program's execution.

  • a) Exception
  • b) Inaccuracy
  • c) Error
  • d) E-fault

Answer: Exception


Question: An exception usually signals an_______

  • a) Exception
  • b) Inaccuracy
  • c) Error
  • d) E-fault

Answer: Error


Question: Although exceptions occur infrequently, one has to be careful in handling such cases while writing the_______

  • a) Program
  • b) Message
  • c) Data
  • d) Code

Answer: Code


Question: ________handling allows a program to continue executing as if no problem had been encountered or it may notify the user of the problem before terminating in an uncontrolled manner.

  • a) Data
  • b) Program
  • c) Error
  • d) Exception

Answer: Exception


Question: There are few standard______available in Java, a technique to guarantee that a particular I block of code will always be executed, even if I exceptions are present in our program.

  • a) Data info
  • b) Programs
  • c) Errors
  • d) Exceptions

Answer: Exceptions


Question: In Java, all kinds of error conditions are called________

  • a) Methods
  • b) Programs
  • c) Errors
  • d) Exceptions

Answer: Exceptions


Question: Errors can be broadly classified into_______categories.

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

Answer: Two


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


Question: ________is a type of error produced in java programs.

  • a) Compile-time errors
  • b) Run-time errors
  • c) Both (A) and (B)
  • d) None of these

Answer: Both (A) and (B)


Question: A________is used to convert source code into object code.

  • a) Compiler
  • b) Interpreter
  • c) Translator
  • d) Decoder

Answer: Compiler


Question: A compiler is used to convert_______code into object code.

  • a) Home
  • b) Source
  • c) Beginning
  • d) Program

Answer: Source


Question: If there is a syntax error in the program, a compilation error is displayed and______file is not created.

  • a) .Source
  • b) .Dat
  • c) .Class
  • d) .Obj

Answer: .Class


Question: Examples of some common syntax errors are missing like a________

  • a) Semicolon
  • b) Use of undeclared variable
  • c) Wrong spellings of identifier or keyword
  • d) All of these

Answer: All of these


Question: The Java_______suggests in an output, the type of error, along with the line number where the error has occurred.

  • a) Compiler
  • b) Interpreter
  • c) Translator
  • d) Decoder

Answer: Compiler


Question: Compile-time_____are usually the mistake of a programmer and it does not allow the program to compile unless they are solved.

  • a) Methods
  • b) Programs
  • c) Errors
  • d) Exceptions

Answer: Errors


Question: In the field of Computer Science, "Exit code" or "Exit status" indicates whether the command or a______executed successfully or not.

  • a) Data type
  • b) Program
  • c) error
  • d) Method

Answer: Program


Question: Code_______indicates that the command executed successfully.

  • a) 1
  • b) -1
  • c) 0.0
  • d) 0

Answer: 0


Question: Code_______indicates that some problem occurred while executing the command.

  • a) 1
  • b) -1
  • c) 0.0
  • d) 0

Answer: 1


Question: If there are no syntax errors in the source code then the program will compile successfully and will get a_______file.

  • a) .source
  • b) .dat
  • c) .class
  • d) .obj

Answer: .class


Question: The array "_______ citylist [ ] = {"Ahmedabad", "Baroda", "Rajkot", "Surat"};" contains name of four different cities.

  • a) String
  • b) Int
  • c) Long
  • d) Boolean

Answer: String


Question: For each type of exception, there are corresponding______classes in Java.

  • a) Programs
  • b) Exceptions
  • c) Java.lang
  • d) Java.io

Answer: Exceptions


Question: The________contains a hierarchy of classes dealing with various exceptions.

  • a) Java.lang package
  • b) Java.io package
  • c) Both (A) and (B)
  • d) None of these

Answer: Both (A) and (B)


Question: An attempt to access the array element with an index value that is outside the range of array uses_______Exception class.

  • 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: An attempt to divide any number by 0 uses_______Exception class.

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

Answer: Arithmetic Exception


Question: An attempt to divide any number by 0 uses______Exception class.

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

Answer: File Not Found Exception


Question: An attempt to use null in a case where an object is required uses_____Exception class.

  • a) PrinterlOException
  • b) NullPointerException
  • c) NumberFormatException
  • d) None of these

Answer: NullPointerException


Question: An attempt to convert string to a number type uses_______Exception class.

  • a) PrinterlOException
  • b) NullPointerException
  • c) NumberFormatException
  • d) None of these

Answer: NumberFormatException


Question: An I/O error has occurred while printing uses .......... Exception class.

  • a) Printer lO Exception
  • b) Null Pointer Exception
  • c) Number Format Exception
  • d) None of these

Answer: Printer lO Exception

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 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 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
Designing Simple Website Using Kompozer
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
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
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 E
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
Introduction To M Commerce
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
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
Java Basics
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
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
Object Oriented Concepts
CBSE Class 12 Computer Science Object Oriented Concepts MCQs Set E
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
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 D
CBSE Class 12 Computer Science Publishing Documents Using Latex MCQs Set C
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

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...

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 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...

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...

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 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...

×
Studies Today