Java Questions & Answers

Java Questions & Answers

University

10 Qs

quiz-placeholder

Similar activities

Programming Language Constructs

Programming Language Constructs

University

15 Qs

Review multiple choice Quiz

Review multiple choice Quiz

KG - Professional Development

10 Qs

Java-Basics

Java-Basics

University

7 Qs

Java Programming

Java Programming

University

11 Qs

Mix of Math,Science and Computer

Mix of Math,Science and Computer

5th Grade - Professional Development

10 Qs

Science Computer Chapter 7 Introduction to Programming

Science Computer Chapter 7 Introduction to Programming

University

10 Qs

FODS-Program Basics

FODS-Program Basics

University

15 Qs

oop_r2

oop_r2

University

11 Qs

Java Questions & Answers

Java Questions & Answers

Assessment

Quiz

Computers

University

Medium

Created by

Chaya Td

Used 40+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these selection statements test only for equality?

if

switch

if & switch

none of the above mentioned

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these are selection statements in Java?

if()

for()

continue

break

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of this statement is incorrect?

switch statement is more efficient than a set of nested ifs

two case constants in the same switch can have identical values

switch statement can only test for equality, whereas if statement can evaluate any type of boolean expression

it is possible to create a nested switch statements

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following Java program?

1

2

3

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid jump statement?

break

goto

continue

return

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The while loop repeats a set of code while the condition is not met?

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is it called if an object has its own lifecycle and there is no owner?

Aggregation

Composition

Encapsulation

Association

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?