for loop

Quiz
•
Computers
•
7th Grade
•
Medium
Tshering Dema
Used 2+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. What does a for loop do in Python?
Stores data
Repeats a block of code for each item in a list
Stops a program
Takes input from the user
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct for loop in Python?
for x to y in list:
loop item in list:
for item in list:
repeat list:
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the loop variable in this code?
fruits
for
fruit
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
cow goat sheep
a a a
goat cow sheep
sheep cow goat
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times does this loop run?
1
2
3
4
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Fill in the blank:
Similar Resources on Wayground
10 questions
ICT 7th Computational thinking

Quiz
•
7th Grade
9 questions
CODING REVIEW WORDS

Quiz
•
7th Grade
10 questions
Programming - Algorithms in Pseudocode & Flow Diagrams

Quiz
•
1st - 12th Grade
10 questions
MineCraft

Quiz
•
7th Grade
8 questions
Explaining Scratch Code - Task 2

Quiz
•
2nd - 8th Grade
10 questions
Introduction to Programming

Quiz
•
2nd - 10th Grade
10 questions
Programming - Iteration, Basic Programming Constructs & Loop

Quiz
•
2nd - 12th Grade
10 questions
Scratch Quiz 1

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