Java round 2

Java round 2

University

10 Qs

quiz-placeholder

Similar activities

UIT 2221 MALWARE (COPTPA)

UIT 2221 MALWARE (COPTPA)

University

15 Qs

KSK2013 -9 Setup report

KSK2013 -9 Setup report

KG - University

15 Qs

software development LAB

software development LAB

University

10 Qs

AB1401 Case Study: Facebook

AB1401 Case Study: Facebook

University

12 Qs

Vocabulary Quiz - Computer - 01

Vocabulary Quiz - Computer - 01

12th Grade - University

10 Qs

Post Test #4 - Python Fundamental #3

Post Test #4 - Python Fundamental #3

University

10 Qs

C Wrapup Quiz Deutsch

C Wrapup Quiz Deutsch

University

12 Qs

SCM and Logistics

SCM and Logistics

University

11 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