Python In transit loops and iterations

Quiz
•
Computers
•
12th Grade
•
Hard
Akirapeter Yong
Used 6+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which statement is used to terminate a loop in Python?
a) stop
b) end
c) exit
d) break
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is the keyword used in Python to create loops?
a) while
b) loop
c) for
d) cycle
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following options is used to execute a loop a fixed number of times?
a) for
b) while
c) repeat
d) iterate
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which option is used to iterate over each character of a string?
a) for loop
b) while loop
c) iterate loop
d) loop loop
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How to access the index and element of a list in a for loop?
a) Use the range() function
b) Use the enumerate() function
c) Use the index() method
d) Use the items() method
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How to get each element of a list and its corresponding index in a loop?
a) Use the index() method
b) Use the enumerate() function
c) Use for loop and range() function
d) Use the items() method
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How to iterate over a list in reverse order in a loop?
a) Use the reversed() function
b) Use the reverse() method
c) Use for loop and range() function
d) Use while loop and range() function
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Unit 5 Quiz - Loops & Lists (code.org)

Quiz
•
10th - 12th Grade
19 questions
Coding Terms Review

Quiz
•
6th Grade - University
19 questions
Python Loops Review

Quiz
•
9th - 12th Grade
25 questions
Python - Chpt 4 - Review

Quiz
•
9th - 12th Grade
15 questions
4th Quarter Summative Exam

Quiz
•
12th Grade
25 questions
untitled

Quiz
•
8th Grade - University
18 questions
Computer Science

Quiz
•
9th - 12th Grade
15 questions
Java Arrays and Loops Quiz Review

Quiz
•
9th - 12th 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
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade