Quiz 13 - For Loops
Quiz
•
Computers
•
11th Grade
•
Easy
Casey Devet
Used 93+ times
FREE Resource
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
11 questions
Programming Quiz 1
Quiz
•
11th Grade
10 questions
ICT as Platform for Change
Quiz
•
11th - 12th Grade
10 questions
BTEC DIT C3 LAA - Using cloud and traditional systems
Quiz
•
10th - 11th Grade
10 questions
MS word
Quiz
•
11th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
10 questions
Tin học 11 - KTtx số 2 - HK I
Quiz
•
11th Grade - University
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
10 questions
10 câu kiểu xâu tiết 1
Quiz
•
11th 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
Discover more resources for Computers
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
21 questions
Halloween & Math
Quiz
•
8th - 12th Grade
13 questions
Halloween Movie Trivia
Quiz
•
9th - 12th Grade
7 questions
Halloween - Myths & Legends
Interactive video
•
10th - 12th Grade
