P1_APLab2Quiz_B11B12

P1_APLab2Quiz_B11B12

University

7 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

12th Grade - University

10 Qs

Quiz on Java

Quiz on Java

University

12 Qs

Neural Networks Basic with Python

Neural Networks Basic with Python

University - Professional Development

12 Qs

Python Control Statements

Python Control Statements

University

10 Qs

X-Quiz #5

X-Quiz #5

University

10 Qs

Quiz 2

Quiz 2

University

10 Qs

Java quiz based on inheritance

Java quiz based on inheritance

University

10 Qs

Functions and Modules

Functions and Modules

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