Quiz on Python While Loop

Quiz on Python While Loop

10th Grade

100 Qs

quiz-placeholder

Similar activities

qizi tin hoc sieu cap 10a1

qizi tin hoc sieu cap 10a1

10th Grade

97 Qs

Latihan Soal-inf-11

Latihan Soal-inf-11

2nd Grade - University

100 Qs

Malicious Software

Malicious Software

8th - 10th Grade

95 Qs

UH 3 Simdig semester 2

UH 3 Simdig semester 2

10th Grade

100 Qs

SQL: GROUP Functions

SQL: GROUP Functions

8th Grade - Professional Development

97 Qs

EverFi Module 2

EverFi Module 2

3rd - 10th Grade

100 Qs

Information Systems

Information Systems

1st - 10th Grade

100 Qs

Computer Architecture Year 7 EOU Test

Computer Architecture Year 7 EOU Test

6th Grade - University

100 Qs

Quiz on Python While Loop

Quiz on Python While Loop

Assessment

Quiz

Computers

10th Grade

Practice Problem

Hard

Created by

nguyentgvi Tuongvzi

FREE Resource

AI

Enhance your content in a minute

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

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?