What does a while loop do?
Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers

Quiz
•
Computers
•
12th Grade
•
Easy

Jose Cruz
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Does not execute any statements
Repeats a statement until a Boolean expression is true
Executes a statement only once
Repeats a statement as long as a Boolean expression is true
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the structure of a while loop?
if (BooleanExpression) { statements }
do { statements } while (BooleanExpression)
for (Initialization; Test; Update) { statements }
while (BooleanExpression) { statements }
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What type of loop is a while loop considered?
Pretest loop
Counter loop
Posttest loop
Infinite loop
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What happens if the condition of a while loop is false at the start?
The loop will cause an error
The loop will iterate indefinitely
The loop will iterate at least once
The loop will not iterate at all
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is an infinite loop?
A loop that executes a fixed number of times
A loop that never starts
A loop that repeats until interrupted
A loop that executes only once
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What do the ++ and -- operators do?
Multiply and divide a variable
Reset a variable to zero
Add and subtract a variable
Increment and decrement a variable
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the general format of a for loop?
for (Initialization; Test; Update) { statements }
while (BooleanExpression) { statements }
do { statements } while (BooleanExpression)
if (BooleanExpression) { statements }
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Basic Python

Quiz
•
10th - 12th Grade
20 questions
Apple Swift Playgrounds: Learn to Code 1 Vocabulary (Lessons 0 - 6)

Quiz
•
9th - 12th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
20 questions
Very Basic Programming

Quiz
•
10th - 12th Grade
18 questions
iGCSE Computer Science: Data Compression and Encryption

Quiz
•
9th - 12th Grade
11 questions
JavaScript Control Structures Basic

Quiz
•
12th Grade
16 questions
AP CSP Unit 3 Ch 1 Vocab

Quiz
•
9th - 12th Grade
15 questions
Computer Science - Python

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University