Python Loops

Quiz
•
Computers
•
9th - 11th Grade
•
Medium

Helen Dinsmore
Used 865+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code, what will it generate
1,2,3,4,5,6,7,8,9,10,11,12
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,13
0,1,2,3,4,5,6,7,8,9,10,11,12,13
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following program display?
1,2,3,4
1,2,3,4,5
counter,counter,counter,counter,counter
0,1,2,3,4,5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1,2,3,4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When do you know when you come to the end of the loop?
Its states End loop
The command End is given
The indentation stops
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
if you wished a loop to repeat 3 types whwt should you use?
For counter in range(0,5):
For counter in range(1.3):
For counter in range(0.3):
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the name of the variable used in the following code?
counter
for
#
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an acceptable variable name?
no-text
8text
no_text
no_text$
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
KS4 - Python Turtle

Quiz
•
9th - 11th Grade
10 questions
Flow Charts

Quiz
•
1st - 10th Grade
12 questions
Hour of Code

Quiz
•
6th - 12th Grade
16 questions
Fetch-Execute cycle

Quiz
•
9th - 10th Grade
14 questions
Code.org Unit 3

Quiz
•
9th - 12th Grade
9 questions
Block Coding

Quiz
•
3rd - 9th Grade
12 questions
Python list starter

Quiz
•
10th Grade - University
9 questions
Unit 5 -- Lists, Loops, Traversals

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade