Search Header Logo

Quiz 10 - While Loops

Authored by Casey Devet

Computers

11th Grade

Used 68+ times

Quiz 10 - While Loops
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following is the correct syntax for a while loop in Java?

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

The body of a while loop will run as long as the test condition is "false".

True

False

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

The body of a while loop must run at least one time.

True

False

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

In the body of a while loop, the value of at least one variable must be changed or else there may be an infinite loop.

True

False

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

There is a maximum number of times that a while loop's body will run.

True

False

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following will print the numbers from 1 to 10?

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following will print the numbers from 50 down to 1?

Media Image
Media Image
Media Image
Media Image

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?