Java_Quiz_Part_2

Java_Quiz_Part_2

University

12 Qs

quiz-placeholder

Similar activities

Problem Solving and Programming Design (Part 2)

Problem Solving and Programming Design (Part 2)

University

15 Qs

CMDP2063 Unix and C Programming

CMDP2063 Unix and C Programming

University

15 Qs

Intro to JS: Functions, Scope & Objects

Intro to JS: Functions, Scope & Objects

11th Grade - University

8 Qs

Quiz 3

Quiz 3

University

12 Qs

Python Loop

Python Loop

University

15 Qs

23CSR306_Unit I

23CSR306_Unit I

University

10 Qs

Introduction To Programming - Lesson Exception Handling

Introduction To Programming - Lesson Exception Handling

11th Grade - University

13 Qs

Understanding User Interfaces and Programming

Understanding User Interfaces and Programming

9th Grade - University

10 Qs

Java_Quiz_Part_2

Java_Quiz_Part_2

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Dinesh Kushwaha

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Information Technology (IT)