
Intro to Python Final
Authored by Taylor Anderson
Computers
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Eliza will wear a coat if it is raining or if it is less than 50° F outside. Otherwise, Eliza will leave her coat at home.
In which of the following cases will Eliza leave her coat at home?
It is raining and 30°F
It is raining and 55°F
It is not raining and 45°F
It is not raining and 50°F
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following describes a task effectively broken into smaller parts?
I. Writing a book by brainstorming, making an outline, and drafting the first chapter
II. Comparing two different cameras
III. Using your phone’s calculator
I only
I and III
II only
I, II, and III
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate the mathematical expression: 10 - 6 x (4 - 2) / 2 + 5.
9
10
13
17
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If x represents the area of the number line colored blue, which inequality accurately reflects the value of x?
x < 5
x > 5
x ≥ 5
x ≤ 5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code:
total = 0
for i in range(5):
total += i
print(total)
What is the result of running this program code?
3
6
10
The program results in an infinite loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a for loop and a while loop?
A for loop repeats commands a specific number of times and awhile loop repeats until a condition becomes false.
A for loop is used to make decisions between two options and awhile loop is used to make decisions between 3 options or more.
A for loop is used when the variable is less than 10 and a while loop is used when the variable is 10 or greater.
A for loop is used when we only need to meet one condition and awhile loop is used when there are two or more conditions.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the output of the following code be?
x = "Woodruff"
print(x * 5)
Woodruff5
Woodruff Woodruff Woodruff Woodruff Woodruff
WoodruffWoodruffWoodruffWoodruffWoodruff
x5
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?