Quiz on Python While Loop

Quiz on Python While Loop

10th Grade

100 Qs

quiz-placeholder

Similar activities

RECF Programming Practice

RECF Programming Practice

8th - 12th Grade

100 Qs

Mr. W CS FINAL EXAM

Mr. W CS FINAL EXAM

9th - 12th Grade

100 Qs

Fall Semester Exam Review

Fall Semester Exam Review

9th - 12th Grade

99 Qs

Programming Quiz Y10

Programming Quiz Y10

KG - 10th Grade

100 Qs

Computer Science I 2022-2023

Computer Science I 2022-2023

9th - 12th Grade

102 Qs

SCRATCH 3.0 Semester Exam 2 Review

SCRATCH 3.0 Semester Exam 2 Review

9th - 12th Grade

100 Qs

Computer Science  Vocabulary Practice

Computer Science Vocabulary Practice

9th - 12th Grade

100 Qs

JS- Animation Basics - Intro to Programming - KhanAcademy

JS- Animation Basics - Intro to Programming - KhanAcademy

9th - 12th Grade

100 Qs

Quiz on Python While Loop

Quiz on Python While Loop

Assessment

Quiz

Computers

10th Grade

Hard

Created by

nguyentgvi Tuongvzi

FREE Resource

100 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the Python programming language, which of the following syntax for a loop with an unknown number of iterations is correct?

while to

while to do

while do:

while :

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the Python programming language, when does a while loop end?

When the condition is false.

When the required number of loops is reached.

When the output is found.

When the condition is true.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the Python programming language, the loop structure with an unknown number of iterations is

while ;

while :

for in range(m,n):

for in range(m,n)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The statement for an unknown number of iterations is

for.

while.

if.

in.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the following statement, how much will the variable i increase by each iteration?

1.

2.

3.

4.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: x = 1 while (x <= 5): print("python") x = x + 1

5 times python.

4 times python.

3 times python.

No output.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: x = 1 while (x <= 5): print("python") x = x + 1

5 times python.

4 times python.

3 times python.

No output.

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?