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
20 questions
Computer 10 | Introduction to Java

Quiz
•
9th - 12th Grade
17 questions
Cumulative Test Practice Units 1, 3, 4, 5, & 7

Quiz
•
9th - 12th Grade
10 questions
Quiz 12 - Totaling and Counting

Quiz
•
11th Grade
10 questions
C#

Quiz
•
11th Grade
10 questions
Python Variables

Quiz
•
7th - 12th Grade
20 questions
Scratch Pre-Assessment

Quiz
•
5th - 9th Grade
20 questions
Quarter 3 Final Exam: Functions and Parameters

Quiz
•
9th - 12th Grade
11 questions
Python function output based KVRDSO lucknow

Quiz
•
11th - 12th 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
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
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade