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

8 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Media Image

Back

012

2.

FLASHCARD QUESTION

Front

Media Image

Back

35

3.

FLASHCARD QUESTION

Front

Media Image

Back

234

4.

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

5.

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

4

6.

FLASHCARD QUESTION

Front

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

Media Image

Back

hi hi hi

7.

FLASHCARD QUESTION

Front

What does the code output? Options: 3, 4, 5; 1, 2, 3; 3, 4, 5, 6; 3, 4, 4

Media Image

Back

3, 4, 5

8.

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