
python revision
Authored by G Kelly
Computers
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print("Hello" + " " + "World")?
Hello World
HelloWorld
"Hello World"
Hello + World
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 5 + 3 * 2?
16
11
13
10
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given name = "Alice" and age = 15, what is the output of print("My name is " + name + " and I am " + str(age) + " years old.")?
My name is Alice and I am 15 years old.
My name is "Alice" and I am "15" years old.
My name is Alice and I am "15" years old.
Error: cannot concatenate str and int
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
fruits = ["apple", "banana", "cherry"]
print(fruits[1])
apple
banana
cherry
["apple", "banana", "cherry"]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does len(fruits) return in the code below?
fruits = ["apple", "banana", "cherry"]
2
3
4
error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the output for the following code:
x = 10
if x > 5:
print("x is greater than 5")
else:
print("x is not greater than 5")
x is greater than 5
x is not greater than 5
No output
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output for the following code:
for i in range(3):
print("Python is fun!")
Python is fun! (printed once)
Python is fun! (printed twice)
Python is fun! (printed three times)
Error
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
10 questions
UNIT 2.4 LOGIC
Quiz
•
10th Grade
10 questions
Activity 1: How well do you know Java?
Quiz
•
9th Grade
12 questions
Wee Word Intro
Quiz
•
7th - 12th Grade
10 questions
Abhyudaya coding class - Grade 7
Quiz
•
6th Grade - University
10 questions
NHỮNG THÀNH TỰU CỦA TIN HỌC
Quiz
•
10th Grade
10 questions
MIL March 8, 2023
Quiz
•
12th Grade
10 questions
NHTW Programming
Quiz
•
9th Grade
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
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