P1_APLab2Quiz_B11B12

P1_APLab2Quiz_B11B12

University

7 Qs

quiz-placeholder

Similar activities

APQuiz-G

APQuiz-G

University

7 Qs

Java Programming

Java Programming

University

11 Qs

Debugging-Duel-CodeUp'25

Debugging-Duel-CodeUp'25

University

10 Qs

Exception Handling

Exception Handling

University

7 Qs

CP2 Topic 5

CP2 Topic 5

University

10 Qs

Software Engineering Quiz 3

Software Engineering Quiz 3

University

10 Qs

Java Quiz 1

Java Quiz 1

University

10 Qs

P1_APLab2Quiz_B3B4

P1_APLab2Quiz_B3B4

University

10 Qs

P1_APLab2Quiz_B11B12

P1_APLab2Quiz_B11B12

Assessment

Quiz

Computers

University

Hard

Created by

MR ARORA

Used 1+ times

FREE Resource

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