Basic Flow Control Quiz

Quiz
•
Computers
•
10th Grade
•
Medium
Adolfo Canon
Used 2+ times
FREE Resource
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?
>
<
+
<=
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
TY Python Quiz

Quiz
•
9th - 12th Grade
10 questions
Programming - Operations on Numeric & Boolean Data

Quiz
•
2nd - 12th Grade
14 questions
1.1.5 CSE Iteration and Loops

Quiz
•
9th - 12th Grade
12 questions
While Loop Quiz

Quiz
•
9th - 12th Grade
15 questions
C Programming

Quiz
•
8th - 10th Grade
10 questions
Computational thinking - General review of the course

Quiz
•
9th - 12th Grade
14 questions
PCS Typing Questions

Quiz
•
9th - 12th Grade
15 questions
IF and Vlookup Function

Quiz
•
9th - 10th 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
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade