java while loop

java while loop

9th - 12th Grade

16 Qs

quiz-placeholder

Similar activities

LO13 Lesson 7

LO13 Lesson 7

10th Grade

14 Qs

12IP

12IP

12th Grade

20 Qs

JAVA Quiz : Rentetan (2)

JAVA Quiz : Rentetan (2)

11th Grade

15 Qs

Python Quiz

Python Quiz

12th Grade

11 Qs

Python Lists v2

Python Lists v2

9th - 12th Grade

15 Qs

CodeHS While Loops

CodeHS While Loops

9th - 12th Grade

12 Qs

Python while loops

Python while loops

12th Grade

20 Qs

Lists and 2d lists(arrays)

Lists and 2d lists(arrays)

12th Grade

16 Qs

java while loop

java while loop

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Dara Kirschenbaum-Perry

Used 70+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

12

012

0123

123

01234

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

104

54

44

35

65

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

2

23

234

34

2345

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

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);

x is 0

x is 1

x is 3

x is 4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a piece of code runs unintentionally forever it is known as

An infinite loop

A long loop

A broken loop

A for loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A condition is

a statement that is either True or False

a string

an integer

a list

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?