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
Similar Resources on Wayground
13 questions
Python while loop

Quiz
•
8th Grade - University
10 questions
Python Nested Loops Quiz

Quiz
•
9th - 12th Grade
13 questions
python times table practice

Quiz
•
9th - 12th Grade
9 questions
KS3 - Selection, Iteration or Sequence

Quiz
•
KG - 12th Grade
15 questions
NOCTI Computer Programming Review

Quiz
•
9th - 12th Grade
10 questions
Programming Quiz

Quiz
•
9th - 12th Grade
10 questions
TEST - Trace table exercise 1

Quiz
•
11th Grade
10 questions
Python Lesson 4 Iteration

Quiz
•
10th - 11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade