Python Ifs, Lists, and Loops

Quiz
•
Computers
•
7th - 8th Grade
•
Medium
Mark Christensen
Used 26+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following lines of code is considered a list? SELECT ALL THAT APPLY.
num=input('Please enter your list')
num=[1, 2, 3]
var=['apple,' banana', 'grape']
print('Is this a list?')
letters=['a' , 'b' , 'c']
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
In order to be considered a List, the code needs what? SELECT ALL THAT APPLY.
Brackets
Variable
Commas
Print Command
Input Command
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many iterations will the loop have?
1 iteration
2 iterations
3 iterations
6 iterations
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between For Loops and While Loops?
For Loops don't use numbers
While Loops aren't considered loops
While Loops can't go infinite
Typically, For Loops are based on lists and While Loops are based on equations
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What number will this loop start at?
1
3
5
20
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you write out "while x is less than twenty"?
while x != 20:
while x > 20:
while x < 20:
while x <= 20:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A loop that is inside of another loop is known as a what?
Infinite loop
Loop to loop
While Loop
Nested Loop
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Roblox Lua Scripting Quiz

Quiz
•
1st - 12th Grade
10 questions
Basic Coding Terms

Quiz
•
6th - 8th Grade
14 questions
p5.js Week1 PREtest

Quiz
•
7th - 12th Grade
10 questions
Pseudocode - Iteration

Quiz
•
7th - 11th Grade
10 questions
CLASS 7 CODING

Quiz
•
7th Grade
14 questions
Chapter Test - Module 14 (While Loop)

Quiz
•
7th Grade
10 questions
FOR LOOPS and Angles with Tracy (PYTHON)

Quiz
•
7th - 8th Grade
7 questions
BGE - Conditional Loops

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th 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
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice

Quiz
•
6th - 8th Grade