FOR Loop Python

Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Andrew Kale
Used 1+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for a basic for loop in Python?
for i in range(5):
for (i = 0; i < 5; i++)
foreach i in range(5):
loop i in range(5):
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code print?
1, 2, 3
0, 1, 2
0, 1, 2, 3
3, 2, 1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
2, 3, 4, 5
2, 3, 4
3, 4, 5
1, 2, 3, 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code do?
Prints each character on a new line
Repeats the whole string
Prints ASCII values
Throws an error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
5, 4, 3, 2
5, 4, 3, 2, 1
1, 2, 3, 4, 5
5, 4, 3, 2, 1, 0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of break?
Exit loop immediately
Skip iteration
Restart loop
Pause execution
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of continue?
Exit loop immediately
Skip current iteration
Restart loop
Pause temporarily
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Coding

Quiz
•
5th - 8th Grade
10 questions
Ms. Molloy Computer Science quick quiz

Quiz
•
7th Grade
13 questions
Code.org Express Course Vocab Lessons 1-10

Quiz
•
6th Grade
16 questions
Microbit +Makecode

Quiz
•
4th - 7th Grade
10 questions
Quiz#6

Quiz
•
8th Grade
13 questions
Coding Vocabulary

Quiz
•
4th - 6th Grade
10 questions
Week 3 Arduino Basics Quiz

Quiz
•
7th - 12th Grade
12 questions
Small Basic Quiz

Quiz
•
7th - 9th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade