Quiz 10 - While Loops

Quiz 10 - While Loops

11th Grade

10 Qs

quiz-placeholder

Similar activities

Loops & Conditional Blocks in Scratch

Loops & Conditional Blocks in Scratch

6th - 12th Grade

10 Qs

Unit 1 Vocabulary CompSci 1

Unit 1 Vocabulary CompSci 1

10th - 12th Grade

15 Qs

Flow Charts (OCR GCSE)

Flow Charts (OCR GCSE)

7th - 11th Grade

10 Qs

CodeHS While Loops

CodeHS While Loops

9th - 12th Grade

11 Qs

Errors in Python

Errors in Python

9th - 12th Grade

12 Qs

Python Loops

Python Loops

9th - 12th Grade

10 Qs

Loops in Python !

Loops in Python !

11th Grade

15 Qs

Pseudocode - Iteration

Pseudocode - Iteration

7th - 11th Grade

10 Qs

Quiz 10 - While Loops

Quiz 10 - While Loops

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Casey Devet

Used 68+ times

FREE Resource

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

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?