APQuiz-G

APQuiz-G

University

7 Qs

quiz-placeholder

Similar activities

Tut11 - Exceptions

Tut11 - Exceptions

University

8 Qs

PE2 Module 3

PE2 Module 3

KG - Professional Development

11 Qs

Computer Fundamentals

Computer Fundamentals

University

10 Qs

LOOPS IN C++

LOOPS IN C++

10th Grade - University

10 Qs

Python 04112023

Python 04112023

University

5 Qs

DEBUG THE CODE

DEBUG THE CODE

University

10 Qs

FST Class 2023- Quiz 4

FST Class 2023- Quiz 4

University

8 Qs

OOP Lab 12 Quiz

OOP Lab 12 Quiz

University

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