Search Header Logo

Chapter 6 - Chapter 8 Python

Authored by Chong May

Information Technology (IT)

University

Used 42+ times

Chapter 6 -  Chapter 8 Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

55 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a looping statement in Python?

if

switch

while

goto

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to stop the current loop iteration and start the next one?

stop

exit

continue

break

3.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Media Image

What will be the output?

(a)  

4.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Media Image

How many times will this loop run?

(a)  

5.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

What is the output of

for i in range(2, 10, 3):

print(i)

?

(a)  

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following generates the numbers 1 to 5 using a for loop?

for i in range(1, 6):

for i in range(1, 5):

for i in range(6):

for i in range(0, 5):

7.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Media Image

What is the final value of i in this loop?

(a)  

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?