
python revision

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
G Kelly
Used 1+ times
FREE Resource
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
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code:
print("Hello, World!"[7:])
Hello
World!
, World!
Hello World
Similar Resources on Wayground
10 questions
Session 1

Quiz
•
9th - 12th Grade
13 questions
Program Development - Python: Errors

Quiz
•
8th - 10th Grade
10 questions
Python Revision Tour

Quiz
•
12th Grade
10 questions
Python Programming

Quiz
•
7th - 9th Grade
10 questions
Quiz Week 6

Quiz
•
10th Grade
10 questions
Python

Quiz
•
1st - 10th Grade
10 questions
Python Quiz for 10s

Quiz
•
10th Grade
13 questions
String Manipulation

Quiz
•
9th - 11th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade