Java Unit 10

Java Unit 10

10th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Loops

Loops

9th - 12th Grade

10 Qs

Loop

Loop

9th - 12th Grade

10 Qs

Basics in Java

Basics in Java

9th - 12th Grade

15 Qs

Java March

Java March

KG - University

16 Qs

Class X - Java 1

Class X - Java 1

10th Grade

15 Qs

while and do while Loop

while and do while Loop

10th Grade

11 Qs

Loops

Loops

9th - 12th Grade

10 Qs

Java switch/for/while

Java switch/for/while

9th - 12th Grade

15 Qs

Java Unit 10

Java Unit 10

Assessment

Quiz

Computers

10th - 12th Grade

Hard

Created by

Thomas Martinez

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is ouptut by the code? Pretend it says System.out.println

2

3

4

5

6

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

104

54

44

35

65

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is the output of the following code?
int x = 0;
while (x < 4) {
 x = x + 1;
}
System.out.println("x is " + x);
0
1
3
4

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

How many times will the following code print "Welcome to Java"?
int count = 0;
while (count < 10) {
 System.out.println("Welcome to Java");
 count++;
}
8
9
10
0

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What does the code output?

0

1

2

3

1

2

3

0

1

2

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What does the code output?

hi

hi

hi

hi

hi

hi

hi

hi

hi

hi

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What does the code output?

3

4

5

1

2

3

3

4

5

6

3

4

4

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?