Java Code

Java Code

10th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Loops

Loops

5th - 12th Grade

16 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

JavaScript and Graphics

JavaScript and Graphics

9th - 12th Grade

15 Qs

Loops Quiz

Loops Quiz

9th - 12th Grade

16 Qs

java variables 1

java variables 1

9th - 12th Grade

13 Qs

Arrays by Swarn

Arrays by Swarn

10th Grade

10 Qs

Java

Java

11th Grade

10 Qs

For Loop

For Loop

9th - 12th Grade

10 Qs

Java Code

Java Code

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Charles Martinez

Used 1+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

0

1

2

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a Java arithmetic operator?

/

%

&

+

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of running the line of code below in Java?

System.out.println(3/2);   

0.5

1

1.5

2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of running the line of code below in Java?

System.out.println(2/3);   

0

0.5

1

1.5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of running the line of code below in Java?

System.out.println(3.0/2);   

0

0.5

1

1.5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is short for "integer" in Java?

int

inte

intr

inr

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If the user inputs 12, what will this code output?

Your number tripled is: 3

Your number tripled is: 36

Your number tripled is: 15

Your number tripled is: 1728

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?