
Basic Flow Control Quiz
Authored by Adolfo Canon
Computers
10th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What are the two possible results of evaluating a logical expression?
Yes or no
Pro or con
true or false
0 or 1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the initialization statement do in a “for” loop?
Defines the loop’s test condition
Sets the loop’s index variable to a starting value
Defines the loop’s exit condition
None of these are true
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a compound logical expression?
Two or more logical expressions joined by a logical operator
Two or more logical expressions joined by a mathematical operator
A logical expression using the <= or >= operators
A logical expression using the ++ or -- operators
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an “if” statement used for in a program?
To execute a block of code if a condition is false
To execute a block of code in a loop
To ask the user a question
To execute a block of code if a condition is true
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of loop never stops executing?
Recursive loop
While() loop
Infinite loop
For() loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of “while” loop will always be executed at least once?
while
do-while
Both of these will be executed at least once
Neither of these is guaranteed to execute at least once
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is not a relational operator?
>
<
+
<=
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
12 questions
ICT Computer Basics pt1
Quiz
•
10th - 12th Grade
15 questions
J808 LO1 and LO2 planning project keywords / terms
Quiz
•
9th - 11th Grade
15 questions
UH 1 BTIK
Quiz
•
10th Grade
12 questions
JUEGO - UNIDADES DE MEDIDA DE ALMACENAMIENTO
Quiz
•
1st - 10th Grade
15 questions
Identidad Corporativa
Quiz
•
10th Grade
10 questions
Excel
Quiz
•
10th - 11th Grade
12 questions
limbajul pascal
Quiz
•
10th Grade
10 questions
Konsep Routing
Quiz
•
1st - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade