Week 10 - Loops & String Formatters

Week 10 - Loops & String Formatters

9th - 12th Grade

82 Qs

quiz-placeholder

Similar activities

Belajar Bareng ASLM Berpikir Komputasional

Belajar Bareng ASLM Berpikir Komputasional

9th Grade

82 Qs

Year 7 End of Year Quiz

Year 7 End of Year Quiz

6th Grade - University

82 Qs

Power BI part1+part2+SQL

Power BI part1+part2+SQL

9th Grade

78 Qs

TECH Database ALL

TECH Database ALL

9th - 12th Grade

81 Qs

MENGENAL INTERNET

MENGENAL INTERNET

9th Grade

80 Qs

Latso Informatika X Genap 2025

Latso Informatika X Genap 2025

10th Grade

80 Qs

G10 Review 1st quarter

G10 Review 1st quarter

10th Grade

83 Qs

ÔN TẬP KIỂM TRA HỌC KỲ I - TIN HỌC 10

ÔN TẬP KIỂM TRA HỌC KỲ I - TIN HỌC 10

10th Grade

78 Qs

Week 10 - Loops & String Formatters

Week 10 - Loops & String Formatters

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Brandon Dolce

Used 20+ times

FREE Resource

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

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?