
Python U1M4A4
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Jennifer OKeefe
Used 12+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nested Conditional code always runs all sub-conditions that are indented under if statements
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if x < 0:
print("-")
else:
if y >= 0:
print("+/+")
else:
print("+/-")
The nested conditional code is sure to be run if _______. (Choose the best answer.)
x=1
x = -1
y= -1
y= 1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if x < 0:
print("-")
else:
if y >= 0:
print("+/+")
else:
print("+/-")
Which values for x and y result in the output "+/-"? (Choose the best answer.)
x=1 and y=0
x=0 and y=-1
x=0 and y=0
x=-1 and y=1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if True:
if False:
print("Banana")
else:
print("Apple")
else:
if True:
print("Dates"
else:
print("Corn")
What is the output of the above code?
"Apple"
"Banana"
"Corn"
"Dates"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Escape sequences start with a backslash(\)
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hello
World!
What is the best choice of code to create the output shown above?
print("Hello\pWorld!"
print("Hello World!"
print("Hello\nWorld!"
print("Hello\tWorld!"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
\\\\
What is the best choice of code to create the output shown above?
print(""'\"\"\"\"\"')
print("\\\\")
print("\\\\\\\\")
print(\\\\)
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
20 questions
Software
Quiz
•
10th Grade
10 questions
UNIT 2.4 LOGIC
Quiz
•
10th Grade
20 questions
Computer Science - X
Quiz
•
8th - 10th Grade
20 questions
UH1_INFO_XII
Quiz
•
11th Grade
10 questions
NHTW Programming
Quiz
•
9th Grade
20 questions
BÀI 24-25 TIN 10
Quiz
•
10th Grade
14 questions
Bài 29. Nhận biết lỗi chương trình
Quiz
•
9th - 12th Grade
20 questions
CSS Acronyms
Quiz
•
9th - 10th Grade
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
