java while loop

java while loop

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

12 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Back

012

2.

FLASHCARD QUESTION

Front

Back

234

3.

FLASHCARD QUESTION

Front

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

Back

10

4.

FLASHCARD QUESTION

Front

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

Back

x is 4

5.

FLASHCARD QUESTION

Front

What does the code output? Options: 0, 1, 2, 3; 1, 2, 3; 0, 1, 2

Back

1, 2, 3

6.

FLASHCARD QUESTION

Front

What does the code output?

Back

There is no output.

7.

FLASHCARD QUESTION

Front

What does the code output? Options: hi, bye, hi bye hi bye hi bye, hi hi hi bye

Back

hi hi hi bye

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?