Python - For Loop

Python - For Loop

8th Grade

12 Qs

quiz-placeholder

Similar activities

Scratch

Scratch

KG - Professional Development

10 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

Linux-2 Quiz 2 -- LAMP

Linux-2 Quiz 2 -- LAMP

1st - 12th Grade

15 Qs

HTML -znaczniki 1

HTML -znaczniki 1

7th Grade - University

15 Qs

Informatika

Informatika

6th - 8th Grade

10 Qs

python quiz

python quiz

6th Grade - Professional Development

10 Qs

Micro:bit

Micro:bit

4th Grade - University

12 Qs

Review Komputer Mid SMP (1)

Review Komputer Mid SMP (1)

8th Grade

15 Qs

Python - For Loop

Python - For Loop

Assessment

Quiz

Computers

8th Grade

Hard

Created by

bhoomi raisinghani

Used 24+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 12 pts

In programming, what is iteration?

The repetition of steps within a program

The order in which instructions are carried out

A decision point in a program

Testing a program to make sure it works

2.

MULTIPLE CHOICE QUESTION

1 min • 12 pts

Which two statements are used to implement iteration?
IF and WHILE
ELSE and WHILE
FOR and WHILE
IF and ELSE

3.

MULTIPLE CHOICE QUESTION

1 min • 12 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

4.

MULTIPLE CHOICE QUESTION

1 min • 12 pts

Which kind of loop would be used?


I need a program that will keep letting me add a monthly payment for 12 months.

FOR Loop

WHILE Loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times will 1 be printed

3

4

5

6

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in 100 :

print ( i )

Syntax error

prints numbers 0 to 100

prints numbers 1 to 100

prints numbers 0 to 99

prints numbers 1 to 99

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?

Discover more resources for Computers