P1_APLab2Quiz_B11B12

P1_APLab2Quiz_B11B12

University

7 Qs

quiz-placeholder

Similar activities

TECH INTELLECT - ROUND 2

TECH INTELLECT - ROUND 2

University

10 Qs

C++ Training-Day 1_Quiz

C++ Training-Day 1_Quiz

University

10 Qs

Recursion

Recursion

University

8 Qs

PYTHON PROGRAMMING

PYTHON PROGRAMMING

University

10 Qs

Regression in Machine Learning

Regression in Machine Learning

University

10 Qs

Chapter 1 - Introduction to Information Technology

Chapter 1 - Introduction to Information Technology

University

10 Qs

PE2 Module 3

PE2 Module 3

KG - Professional Development

11 Qs

JavaScript Quiz | For Beginners

JavaScript Quiz | For Beginners

1st Grade - 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