
Control Flow and Booleans Quiz
Authored by Michael Alves
Computers
11th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is control flow in Python?
Executing a sequence of instructions from top to bottom
Directing the Python interpreter to different parts of the program
Assigning values to variables
Writing programs that can decide to execute one piece of code instead of another based on circumstances
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a boolean in Python?
A type of variable that can hold a decimal value
A type of variable that can hold a string value
A type of variable that can hold an integer value
A type of variable that can hold a true or false value
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a boolean in real life?
The color of the sky
The answer to a yes or no question
The temperature outside
The name of a person
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function can be used to concatenate boolean variables with strings in Python?
str()
join()
concat()
add()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a boolean variable type used for in Python?
Storing text data
Performing mathematical operations
Making decisions in the program
Displaying output to the user
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a boolean variable?
age = 25
name = 'John'
average = 8.5
is_student = True
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of control flow in programming?
To store and retrieve data
To direct the interpreter to different parts of the program
To display the output to the user
To execute all the code in the program
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
10 questions
Scratch (28th March)
Quiz
•
KG - University
10 questions
CHƯƠNG TRÌNH CON BT1
Quiz
•
10th - 12th Grade
10 questions
R082 Book Cover Assets planning
Quiz
•
7th - 12th Grade
10 questions
DTJSQuiz
Quiz
•
11th Grade
10 questions
KTTX Tin 9-HKII
Quiz
•
9th - 12th Grade
10 questions
Информатика 8ә-сынып
Quiz
•
11th Grade
10 questions
Latency and Bandwidth
Quiz
•
10th - 11th Grade
11 questions
Цикли з лічильником. Цикли з передумовою
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade