Search Header Logo

APQuiz-G

Authored by MR ARORA

Computers

University

Used 2+ times

APQuiz-G
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?