Python - For Loop & Nested Loops

Quiz
•
Computers
•
7th Grade
•
Medium
Nur Hashimi
Used 3+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to start a for loop in Python?
loop
for
repeat
while
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will for i in range(3): print(i) output?
1 2 3
0 1 2
0 1 2 3
1 2
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In for x in range(5):, how many times will the loop run?
4
5
6
Infinite
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function generates a sequence of numbers for a loop?
list()
numbers()
range()
seq()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a nested loop?
A loop that runs only once
A loop inside another loop
A loop without a range
A loop with a break
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a nested loop, which loop runs faster?
The outer loop
The inner loop
Both run at same speed
None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is TRUE about for loops?
They can only loop over numbers
They can loop over strings, lists, or ranges
They run forever
They must have 3 parameters
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Flow Charts

Quiz
•
1st - 10th Grade
13 questions
KS3 Python Quiz

Quiz
•
3rd - 10th Grade
14 questions
Chapter Test - Module 15 (For Loops)_G7Loyalty

Quiz
•
7th Grade
12 questions
Homework 1 Edublocks

Quiz
•
7th - 9th Grade
17 questions
Компютърно моделиране с Python

Quiz
•
7th Grade
10 questions
Basic Coding Terminology

Quiz
•
6th - 8th Grade
13 questions
Основи програмування на Python

Quiz
•
7th Grade
10 questions
session 3

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

Quiz
•
6th - 8th 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