
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?