Python While Loop Quiz

Python While Loop Quiz

9th Grade

6 Qs

quiz-placeholder

Similar activities

 Unit 4 Advanced AP CSP

Unit 4 Advanced AP CSP

9th - 12th Grade

10 Qs

Q2 WEEK 5 PRACTICE QUIZ #1

Q2 WEEK 5 PRACTICE QUIZ #1

9th Grade

10 Qs

PMBOK Quiz

PMBOK Quiz

KG - University

10 Qs

EXAMEN 2 PARCIAL 1 SEMESTRE

EXAMEN 2 PARCIAL 1 SEMESTRE

9th - 12th Grade

10 Qs

C# 11

C# 11

1st - 10th Grade

10 Qs

Tin học 9 Bài 7: Phần mềm trình chiếu

Tin học 9 Bài 7: Phần mềm trình chiếu

9th Grade

10 Qs

Programs and Variables in Code and Play

Programs and Variables in Code and Play

5th - 9th Grade

7 Qs

Nhanh tay- Nhanh trí - Bài 1-Tin9

Nhanh tay- Nhanh trí - Bài 1-Tin9

7th Grade - University

10 Qs

Python While Loop Quiz

Python While Loop Quiz

Assessment

Quiz

Computers

9th Grade

Practice Problem

Hard

Created by

Vernon Leigh

Used 13+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does this `while` loop do?

a. Prints numbers from 0 to 4

b. Prints numbers from 1 to 5

c. Prints the value of `count` indefinitely

d. Raises an error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does this code snippet do?

a. Prints even numbers from 10 down to 2

b. Prints odd numbers from 1 to 9

c. Prints even numbers from 10 to -∞

d. Results in an infinite loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does this `while` loop print?

a. 0 1 2 3 4

b. 1 2 3 4 5

c. 0 1 2 3

d. Infinite loop of 0s

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which `while` loop correctly prints the first three multiples of 4?

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this `while` loop?

a. 2 4 6

b. 2 4 6 8

c. 0 2 4 6

d. 2 4 8

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which `while` loop correctly prints the squares of numbers from 1 to 5?

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?