Quiz 13 - For Loops
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Easy
Casey Devet
Used 94+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
In a for loop, which of the following is NOT included in the parentheses after the "for" keyword?
updating the control variable
loop body
initializing the control variable
test condition
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
In the given for loop, when will the instruction "int x = 1" be executed?
once, at the beginning of the loop
once, at the end of the loop
after every loop iteration
before every loop iteration
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
In the given for loop, when will the test "x <= 10" be executed?
once, at the beginning of the loop
once, at the end of the loop
after every loop iteration
before every loop iteration
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
In the given for loop, when will the instruction "x++" be executed?
once, at the beginning of the loop
once, at the end of the loop
after every loop iteration
before every loop iteration
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
How many iterations will this for loop execute?
9
10
11
infinitely many
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
For loops can be contained in for loops
True
False
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
This for loop is supposed to print the numbers from 1 to 100, but isn't working. What needs to be corrected?
count should start with the value 0
Use count-- instead of count++
Use > instead of >=
Use <= instead of >=
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
10 questions
Tin 11 - Bài 2 - Phần 1
Quiz
•
11th Grade
11 questions
Threats to Data
Quiz
•
9th - 12th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
15 questions
Identify the Line with Syntax Error
Quiz
•
10th - 11th Grade
10 questions
PUNCTUATION SPACING RULES
Quiz
•
9th - 12th Grade
10 questions
A level Computer Science In-fix post-fix Reverse polish
Quiz
•
10th Grade - University
13 questions
Guess the Retro Computer 1
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
