
M2.2: SAQ 2.2
Authored by Parker Gaston
Other
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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!
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
17 questions
Cultural Retention and Erasure
Quiz
•
University
20 questions
Sals of Goods Act 1930
Quiz
•
University
21 questions
Guess the Anime Character
Quiz
•
KG - Professional Dev...
19 questions
Interprocess communication
Quiz
•
University
20 questions
International Human Resource Management (ROUND 1)
Quiz
•
University
19 questions
Les endroits dans la ville
Quiz
•
7th Grade - University
20 questions
Quiz 2- Leadership
Quiz
•
University
17 questions
Musical Terms
Quiz
•
5th Grade - Professio...
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University