MCQ 1511 MarkThe instruction having possibilities to have errors are written in ………… .✓try Bcatch Cfinally DthrowAnswerCorrect option: A. try (A) tryView full question & answer→
MCQ 1521 MarkIf finally or catch are not given at the perfect location then ………. can happen.Aprogram get complied✓program does not compile Cprogram is terminated immediately. Dprogram enters the loopAnswerCorrect option: B. program does not compile (B) program does not compileView full question & answer→
MCQ 1531 MarkFinally block does not care about ……… .✓whether the exceptions are thrown or not by try block Binside catch blockC(A) and (B) bothDnone of theseAnswerCorrect option: A. whether the exceptions are thrown or not by try block (A) whether the exceptions are thrown or not by try blockView full question & answer→
MCQ 1541 MarkWhich of the following statements is true ?AExceptions are more serious than Errors.BErrors are more serious than Exceptions.CErrors and Exceptions are equally serious. ✓Exceptions and Errors are the same thing.AnswerCorrect option: D. Exceptions and Errors are the same thing.(D) Exceptions and Errors are the same thing.View full question & answer→
MCQ 1551 MarkInstruction handling one or more exceptions are included in …………. .Atry ✓catch Cfinally DthrowAnswerCorrect option: B. catch (B) catchView full question & answer→
MCQ 1561 MarkInstruction raising one or more exceptions are included in …………. .✓try Bcatch Cfinally DthrowAnswerCorrect option: A. try (A) tryView full question & answer→
MCQ 1571 Mark…………… keyword is used to make a program using exception handling.Atry Bcatch Cfinally ✓All of theseAnswerCorrect option: D. All of these(D) All of theseView full question & answer→
MCQ 1581 Mark………… is the status of exception.AStatic situation ✓Error situation CDynamic situation DStatus of Java programmingAnswerCorrect option: B. Error situation (B) Error situationView full question & answer→
MCQ 1591 MarkErrors are classified into ……….. categories.✓2 B3 C4 D5AnswerCorrect option: A. 2 (A) 2View full question & answer→
MCQ 1601 MarkWhich of the following is least important to know if you want to be able to use a method to its full potential ?AThe method’s return typeBThe type of arguments the method requires✓The number of statements within the method DThe type of Exceptions the method throwsAnswerCorrect option: C. The number of statements within the method (C) The number of statements within the methodView full question & answer→
MCQ 1611 MarkWhich of the following elements is not included in try block ?AThe keyword try ✓The keyword catch CThe curly braces DStatements that might cause ExceptionsAnswerCorrect option: B. The keyword catch (B) The keyword catchView full question & answer→
MCQ 1621 Mark………… package has corresponding classes to work with different exceptions.Ajava.lang Bjava.io Cjava.hang ✓(A) and (B) bothAnswerCorrect option: D. (A) and (B) both(D) (A) and (B) bothView full question & answer→
MCQ 1631 MarkWhat is available for each type of exception in Java ?APublic class ✓Related exceptions class CPrivate class DAll of theseAnswerCorrect option: B. Related exceptions class (B) Related exceptions classView full question & answer→
MCQ 1641 MarkExit code ……….. suggests that program is not executed successfully.✓0 B1 C– 1 D2AnswerCorrect option: A. 0 (A) 0View full question & answer→
MCQ 1651 MarkIn computer science, …………. indicates whether the program is executed successfully or not.AExit code BExit status ✓both (A) and (B)DNone of theseAnswerCorrect option: C. both (A) and (B)(C) (A) or (B)View full question & answer→
MCQ 1661 MarkWhat is an exception ?ANot to consider✓Error during the compilation of program CAll types of error situations D(B) and (C)AnswerCorrect option: B. Error during the compilation of program (D) (B) and (C)View full question & answer→
MCQ 1671 MarkWhich of the following methods can throw an Exception ?AMethods with throws clause BMethods with a catch block✓Methods with a try block DMethods with finally blockAnswerCorrect option: C. Methods with a try block (C) Methods with a try blockView full question & answer→
MCQ 1681 MarkWhich of the following is an advantage of using a try ….catch block ?AExceptional events are eliminated BExceptional events are reduced✓Exceptional events are integrated with regular events DExceptional events are isolated from regular eventsAnswerCorrect option: C. Exceptional events are integrated with regular events (C) Exceptional events are integrated with regular eventsView full question & answer→
MCQ 1691 MarkWhich of the following should be within a catch block ?AFinally blockBSingle statement that handles Exception ✓Any number of statements to handle Exception DThrows keyword AnswerCorrect option: C. Any number of statements to handle Exception (C) Any number of statements to handle ExceptionView full question & answer→
MCQ 1701 MarkWhich of the following is a correct word for all Java Exceptions ?AErrors ✓Runtime Exceptions CThrowables DOmissionsAnswerCorrect option: B. Runtime Exceptions (B) Runtime ExceptionsView full question & answer→
MCQ 1711 MarkWhich of the following refers to an error condition in object-oriented programming terminology ?AAnomalyBAbbreviation ✓Exception DDeviationAnswerCorrect option: C. Exception (C) ExceptionView full question & answer→