Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers
Quiz
•
Computers
•
12th Grade
•
Easy
Jose Cruz
Used 2+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does a while loop do?
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
20 questions
Latihan PSAS Kelas 9
Quiz
•
9th Grade - University
18 questions
12AIT - All About W3C <3
Quiz
•
10th Grade - University
13 questions
வகுப்பு 12 - அடோப் இன்டிசைன் CC 2019
Quiz
•
12th Grade
10 questions
Alapismeretek
Quiz
•
7th - 12th Grade
14 questions
How the Internet Works
Quiz
•
4th Grade - University
10 questions
Scratch
Quiz
•
KG - Professional Dev...
16 questions
AI Checkpoint 1 Revision
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
