Search Header Logo

Java_Quiz_Part_2

Authored by Dinesh Kushwaha

Information Technology (IT)

University

Used 1+ times

Java_Quiz_Part_2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these are selection statements in Java?

if()

for()

break

else

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following Java program?

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the output of the following Java program?


5

6

14

compilation error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following Java program?

1 3 5 7

2 4 6 8

1 3 5 7 9

1 2 3 4 5 6 7 8 9

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of these keywords can be used to prevent inheritance of a class?

super

constant

class

final

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a type of polymorphism in Java?

Compile time polymorphism

Execution time polymorphism

Multiple polymorphism

Multilevel polymorphism

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following Java program?

5 6 5 6

5 6 5

Runtime error

Compilation error

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?