MP3: Practice Test 1

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Angelito Villalon
Used 2+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a loop used for?
To repeat a block of code multiple times
To store data
To define a function
To handle errors
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A While Loop runs until ________________.
a specified condition is false.
a specified condition is true.
the loop has iterated 10 times.
the program ends.
3.
OPEN ENDED QUESTION
3 mins • 1 pt
Define the following: a. Loop control variable b. Count Variable c. Initialize
Evaluate responses using AI:
OFF
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the two ways of ending a loop?
Using a break statement and reaching the end of the loop block
Using a continue statement and reaching the end of the loop block
Using a return statement and reaching the end of the loop block
Using a goto statement and reaching the end of the loop block
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For questions 5-7, what is output by each of the following loops? x = 10 while (x > 5): x = x - 1 print (x)
5, 6, 7, 8, 9
6, 7, 8, 9, 10
9, 8, 7, 6, 5
10, 9, 8, 7, 6
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following loop? x = 1 while (x < 5): print (x) x = x + 2
1 3
1 2 3 4
1 2 3 4 5
1 3 5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? ``` x = 1 while (x < 12): print (x) x = x + 3 ```
1 4 7 10
1 2 3 4 5 6 7 8 9 10 11
1 3 6 9
1 4 7 10 13
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Java by Mr Sam

Quiz
•
10th Grade
16 questions
Digital Solutions - Algorithms

Quiz
•
11th - 12th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
22 questions
Python тілінде циклдар

Quiz
•
9th - 12th Grade
16 questions
Iteration Recap

Quiz
•
8th - 9th Grade
16 questions
Loops Quiz

Quiz
•
9th - 12th Grade
20 questions
Validating user input

Quiz
•
11th Grade
20 questions
End of year quiz: Python

Quiz
•
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
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