
M2.3: SAQ

Quiz
•
Other
•
University
•
Easy
Parker Gaston
Used 1+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The condition in an if statement may be a(n) _________ .
Boolean variable
Compound Boolean expression
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The statements inside an if must be indented using tabs.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An if statement must always have an accompanying else.
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Another name for an if statement is a selection statement.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python statement is used to simplify tail nesting code?
else
elif
if-else
tail
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is displayed by the following code?
a = 5
b = 6
c = 7
d = 8
if a <= 5:
if b > 7:
print(c)
else:
print(d)
else:
if b < 7:
print(2 * c)
else:
print(2 * d)
7
8
14
16
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
a = 3
b = 5
c = 7
d = 9
if a >= 5:
if b > 7:
print(c)
else:
print(d)
else:
if b < 7:
print(2 * c)
else:
print(2 * d)
7
8
14
16
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
الاختبار الثانى برمجة

Quiz
•
University
15 questions
Deutsch quiz

Quiz
•
University - Professi...
15 questions
Instrumen

Quiz
•
University
20 questions
Soft Computing W23-24

Quiz
•
University
24 questions
Estadística global

Quiz
•
University
23 questions
Repaso de Intervención nutricional

Quiz
•
University
15 questions
Sifat-Sifat Bahan Makanan

Quiz
•
University
20 questions
Soal Dasar Pemrograman Dan Algoritma

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

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University