Java Lesson 9

Java Lesson 9

5th Grade - University

12 Qs

quiz-placeholder

Similar activities

GDP

GDP

9th - 12th Grade

16 Qs

DAA-CT 2

DAA-CT 2

University

10 Qs

Recruitment

Recruitment

7th Grade

11 Qs

Plant Operation Chapter 8

Plant Operation Chapter 8

University

12 Qs

Reading Principles

Reading Principles

University

10 Qs

pensée computationnelle 2SC [Trim2] Test1

pensée computationnelle 2SC [Trim2] Test1

11th Grade

10 Qs

Riddles

Riddles

KG - Professional Development

13 Qs

ULANGAN TEMA 1 SUBTM 2 KELAS 5

ULANGAN TEMA 1 SUBTM 2 KELAS 5

11th Grade

10 Qs

Java Lesson 9

Java Lesson 9

Assessment

Quiz

Other

5th Grade - University

Medium

Created by

Rohit Sharma

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...

12 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

What will the following code segment print?

System.out.println(4 / 5);

2.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

What will the following code segment print?

System.out.println(4 * 2.0);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value in variable x after this code segment is executed?

String x = "" + 4 + 2;

"6"

"6.0"

There will be a runtime error

There will be a syntax error

"42"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value in variable x after this code segment is executed?

int x = (int) 5.0 / 2;

2

2.5

There will be a runtime error

There will be a syntax error

3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value in variable x after this code segment is executed?

double x = (double) 5 / (int) 2

2

2.5

There will be a runtime error

There will be a syntax error

2.0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value in variable x after this code segment is executed?

double x = (double) 5 / (int) 2

2

2.5

There will be a runtime error

There will be a syntax error

2.0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of num?
double num = Math.sqrt(49);
7
7.0

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?