MODULE III

MODULE III

6 Qs

quiz-placeholder

Similar activities

Overview of Scratch Extension

Overview of Scratch Extension

KG - University

10 Qs

E 6 Vocabulary

E 6 Vocabulary

4th Grade

10 Qs

Year 6 Science GL Style Practice Paper

Year 6 Science GL Style Practice Paper

5th Grade - University

10 Qs

T3 Lesson 1:  Mixtures and Solutions

T3 Lesson 1: Mixtures and Solutions

KG - University

11 Qs

Honors Chemistry Density Quiz

Honors Chemistry Density Quiz

10th Grade

10 Qs

Blinking Maze

Blinking Maze

KG - University

10 Qs

MODULE III

MODULE III

Assessment

Quiz

others

Hard

Created by

Vallipriyadharshini K

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

A method that potentially generates a checked exception must include this keyword in its method signature:
throw
extend
throws
extends

2.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Which of the following statements is true about Java's finally block?
The finally block is only executed if an exception is thrown in the try block
The finally block is only executed if an exception is thrown in the catch block
The finally block is only executed if an exception is not thrown in the try or catch block
The finally block is executed regardless of whether an exception is thrown in the try or catch block

3.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Media Image
What will be the output of the following Java code?
Hello
World
HelloWOrld
Compilation Error

4.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Which exception will be thrown by parseInt() method in Java?
. IntegerOutOfBoundException
IntegerFormatException
ArithmeticException
NumberFormatException

5.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Media Image
What will be the output of the following program?
Hello
World
HelloWOrld
WorldWorld

6.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

If an error occurs when code inside a try block runs, what will happen next?
Nothing will ever happen. The program will always crash.
The next line of code in the try block runs.
The code starts running again from the beginning of the try block.
The code in the catch block runs.