3. Repetition / While Loops

3. Repetition / While Loops

7th Grade

5 Qs

quiz-placeholder

Similar activities

7th Unit 1 Lesson 6

7th Unit 1 Lesson 6

7th Grade

10 Qs

Understanding Hemispheres

Understanding Hemispheres

7th Grade

10 Qs

Digital Watch

Digital Watch

7th Grade

10 Qs

3. Repetition / While Loops

3. Repetition / While Loops

Assessment

Quiz

others

7th Grade

Hard

Created by

Jeremy Talbot

Used 2+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What does this program do?
Counts up from 1 to 5
Counts down from 5 to 1
Prints "Liftoff!" 5 times
Prints "Liftoff!" only once

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What does this program do?
Computes the sum of numbers until it reaches 10
Prints numbers until their sum exceeds 10
Multiplies numbers until the product exceeds 10
Computes the average of numbers until it reaches 10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
How does this program use a while loop for password validation?
The loop runs until the user enters any password
The loop runs until the user enters the correct password
The loop runs for a fixed number of iterations
The loop runs until the user decides to exit

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
How does this program use a while loop for a guessing game?
The loop runs until the user decides to stop guessing
The loop runs until the user correctly guesses the target number
The loop runs for a fixed number of iterations
The loop runs until the user enters an invalid guess

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Bonus Question (Do not expect you to know this). What is the purpose of this program, and how does the while loop condition work?
It prints odd numbers until reaching 10
It prints even numbers until reaching 10
It prints all numbers until reaching 10
It prints numbers in reverse order until reaching 10