
M2.2: SAQ 2.2
Quiz
•
Other
•
University
•
Easy
Parker Gaston
Used 1+ times
FREE Resource
Enhance your content
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In short-circuit evaluation, Python stops evaluating a Boolean expression as soon as it knows the answer.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The logical operators and, or, and not each take two operands.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the "not equal to" operator in Python?
<>
!=
>=
<=
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Statements that evaluate to either True or False are called __________ .
Boolean expressions
logical expressions
relational expressions
Any of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement evaluates to True?
5 != 5 or 9 < 6
6 < 15 and 6 < 7
9 < 10 and 10 < 10
not 9 < 10
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When calculating pi using the Wallis formula, the accumulator variable:
is increased by two each iteration.
must be initialized to zero.
must be initialized to one.
is multiplied by two each iteration.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong with this accumulator pattern, that is supposed to calculate the sum of all the multiples of seven between 1 and 100?
acc = 0
for x in range(0, 100, 7):
acc = acc + x
The accumulator pattern is not used for multiplication
The accumulator variable is improperly initialized
The range function call does not produce the right terms
Nothing is wrong!
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
học sinh giỏi cấp trong lớp
Quiz
•
University
25 questions
Risk Assessment - Risk Control [REVIEW]
Quiz
•
University
25 questions
Cricket
Quiz
•
KG - Professional Dev...
17 questions
NASM 1
Quiz
•
University
20 questions
Quiz for E415 batch
Quiz
•
University
17 questions
Recreation & Liesure
Quiz
•
University
20 questions
Microprocessor 8085
Quiz
•
University
16 questions
College Football Teams
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Other
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University