Search Header Logo

P1_APLab2Quiz_B11B12

Authored by MR ARORA

Computers

University

Used 1+ times

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

A

B

Error

No Output

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Predict the output.

10

200

400

0

200

400

10

200

200

0

0

400

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Predict the output

Writing...

Writing Book

Writing Code

Nothing

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Predict the Output

petrol

petrolpetrol

carpetrol

Error

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the primary difference between throw and throws in Java?

throw is used to declare an exception, while throws is used to handle an exception.

throw is used to handle checked exceptions, while throws is used to handle unchecked exceptions.

throw is used to explicitly throw an exception, while throws is used to declare that a method can throw exceptions.

throw is used in the catch block, while throws is used in the try block.

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Predict the output

Object Method

String Method

Compilation Error

No Output

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Predict the Output

0

1

2

3

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?