CP M4 Repetition & Loops

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Marcia Bernas
Used 12+ times
FREE Resource
15 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
A __________________ is a collection of commands that are given a name.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False. Every WHILE loop can be replaced with FOR loop.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Variable used to end the loop
Loop control variable
count variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
While loops should always be:
output
indented
calculated
input
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For a loop to stop, the loop control variable must ________________.
change
be input from the keyboard
be true
change inside the loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with:
x = 1
while (x < 20):
print (x)
There is no x = 0 before the loop
The loop will not stop since the condition is wrong
x should be c
The loop will not stop since x never changes
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use loops?
Because computers can do calculations humans can't.
Because programming is an important skill
Because of efficiency.
Because programs need to make decisions.
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Python - MP2 Test

Quiz
•
10th Grade
10 questions
Programming Basics

Quiz
•
9th - 10th Grade
15 questions
APCSP Cumulative Test 2

Quiz
•
9th - 12th Grade
13 questions
APCSA Unit 3 Review

Quiz
•
9th - 12th Grade
20 questions
Code.org CSD Unit 3 Lessons 1-12

Quiz
•
3rd - 12th Grade
20 questions
looping and branching statements in C

Quiz
•
9th Grade
10 questions
Struktur Kontrol Perulangan

Quiz
•
10th - 11th Grade
10 questions
C_หน่วย 3

Quiz
•
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
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

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

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

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

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

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

Interactive video
•
9th - 12th Grade