Search Header Logo

Week 10 - Loops & String Formatters

Authored by Brandon Dolce

Computers

9th - 12th Grade

Used 24+ times

Week 10 - Loops & String Formatters
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

82 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

A while loop can be used in which of the following situations?

Repeat a set of statements till a condition remains True.

Repeat a set of statements a finite or an infinite number of times.

Iterate through a string, list, and tuple.

All of the above

2.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

What symbol is used in python to assign values to a variable?

equals =

plus +

minus -

asterisk *

3.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

Kind of loop used when you know the number of times you want it to repeat

list

for

while

if

4.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

Loop that runs till the condition is true

list

while

for

if

5.

MULTIPLE SELECT QUESTION

45 sec • 10 pts

In Python, the two types of loops are _____ and _______

while

for

list

if

6.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

Choose the correct output of the following code.

for i in range(10,15):       

print(i)

10

11

12

13

14

15

10

11

12

13

14

11

12

13

14

15

11

12

13

14

7.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

Media Image

The program above

prints all the odd numbers between 1 and 20

prints all even numbers between 1 and 20

print all the odd numbers between 1 and 21

prints all the even numbers between 1 and 21

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?