Java round 2

Java round 2

University

10 Qs

quiz-placeholder

Similar activities

Information System and Modern Organization part 1

Information System and Modern Organization part 1

University

14 Qs

FSA,DFA dan NFA

FSA,DFA dan NFA

University

15 Qs

Computer Basics 2 - CESA

Computer Basics 2 - CESA

7th Grade - University

10 Qs

Node.js

Node.js

University

10 Qs

CS Open House

CS Open House

University

10 Qs

Software Testing

Software Testing

University

10 Qs

Chapter 2: Input Device

Chapter 2: Input Device

12th Grade - University

12 Qs

C++ Array Quiz

C++ Array Quiz

University

10 Qs

Java round 2

Java round 2

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

San Saravanan

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following Java program?

NaN

Infinity

0.0

all of the mentioned

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the following Java program?

10

5

15

The code will not compile due to syntax error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the following code snippet?

true

false

It will cause a compilation error

It will throw a runtime exception

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the following Java program?

10 9 8 7 6 5 4 3 2 1 

0 1 2 3 4 5 6 7 8 9 10

1 2 3 4 5 6 7 8 9 10 

The code will not compile due to a syntax error. 

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the following program?

10

11

9

Compile-time error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of the following Java program?

The program results in a compiler error (“ambiguous overload”).

long

Integer

int

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the following code snippet?

Programming

Java

Java Programming

Compile-time 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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers