Assessment - for loop in Python

Assessment - for loop in Python

11th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

Unit 4 Quiz #2 CSP  Day 16 2023

Unit 4 Quiz #2 CSP Day 16 2023

12th Grade

9 Qs

APCSA Unit 4

APCSA Unit 4

9th - 12th Grade

10 Qs

C++ For Loop Basic Grade 12

C++ For Loop Basic Grade 12

11th Grade

10 Qs

Week 16 - CP1

Week 16 - CP1

12th Grade

9 Qs

Do Now - Retrieval - Programming and Data Structures

Do Now - Retrieval - Programming and Data Structures

11th Grade

11 Qs

Quiz 13 - For Loops

Quiz 13 - For Loops

11th Grade

10 Qs

Loops

Loops

9th - 12th Grade

10 Qs

PYTHON 1

PYTHON 1

11th - 12th Grade

10 Qs

Assessment - for loop in Python

Assessment - for loop in Python

Assessment

Quiz

Computers

11th - 12th Grade

Medium

Created by

DHIVYA ANOOP

Used 17+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

FOR loops are

loops which run an unknown number of times

loops which run for a specific number of times

the same as if statements

not part of programming

2.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Media Image

What are the values that can be seen in the output?

0,1,2,3,4,5,6,7,8,9,10, 11,12

1,2,3,4,5,6,7,8,9,10,11,

12

1,2,3,4,5,6,7,8,9,10,11,

12,13

0,1,2,3,4,5,6,7,8,9,10,11,12,13

3.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Media Image

what is the name of the variable used in the following code?

counter

print

for

#

4.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

What type of loop is used when you know how many times you want to repeat something?

while loop

for loop

if statement

a variable

5.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Choose the set of values of i that will be displayed on the screen.

for i in range(1,6):

print(i*2)

2,4,6,8,10

1,2,3,4,5

1,2,3,4,5,6,

2,4,6,8,10,12

6.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Media Image

Predict the output of the given code:

Media Image
Media Image
Media Image