APQuiz-G

APQuiz-G

University

7 Qs

quiz-placeholder

Similar activities

Java Exeption

Java Exeption

University

8 Qs

Quiz 7

Quiz 7

University

11 Qs

Python Day 10

Python Day 10

University

7 Qs

Java quiz 1

Java quiz 1

University

10 Qs

Java quiz based on inheritance

Java quiz based on inheritance

University

10 Qs

Exceptions + java

Exceptions + java

University

11 Qs

Tut11 - Exceptions

Tut11 - Exceptions

University

8 Qs

C# chapter 1

C# chapter 1

University

10 Qs

APQuiz-G

APQuiz-G

Assessment

Quiz

Computers

University

Hard

Created by

MR ARORA

Used 2+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Predict the output

5 6 5 6

Error

5 5 6 6

5 6 6 5

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Predict the Output.

2

0

error

3

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which exception is thrown when java is out of memory?

MemoryError

OutOfMemoryError


MemoryOutOfBoundsException

MemoryFullException

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Predict the Output

1

Memory Error

Compilation Error

5

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these keywords are used for the block to be examined for exceptions?

try

catch

throw

finally

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Predict the output.

Derived class

Test class

Compilation Error

Runtime Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is FALSE about finally block?

For each try block, there can be only 1 finally block.

finally block will not be executed if program exits by calling System.exit();

If an exception is not handled in the catch statement, before terminating the program, JVM executes the finally block

finally block contains important code segment and so the code inside finally block is executed with/without the presence of try block in java code.