
Python Exam
Quiz
•
Computers
•
7th Grade
•
Practice Problem
•
Hard
Alejandra Vargas
Used 3+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Challenge 1: What will the following code display?
firstName = "John"
print("Hello " + firstName)
Hello firstName
firstName
Hello John
Hello
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Challenge 2: What will the following code display?
firstName = "John"
surname = "Doe"
print("Hello " + firstName + " " + surname)
Hello John
Hello John Doe
Hello Doe
John Doe
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Challenge 3: What will the following code display?
age = 15
print("I am " + age + " years old")
I am 15 years old
I am age years old
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Challenge 4: What will the following code display?
age = 15
print("I am ", age, " years old")
I am 15 years old
I am age years old
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Challenge 5: Which code will display the joke on one line?
print("What do you call a bear with no teeth?\nA gummy bear!")
print("What do you call a bear with no teeth?")
print("A gummy bear!")
print("What do you call a bear with no teeth? A gummy bear!")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Challenge 6: What will the following code display?
num1 = 10
num2 = 5
print("The total is ", num1 + num2)
The total is 10 + 5
The total is 15
10 + 5 = 15
Total is 15
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Challenge 7: What will the following code display?
num1 = 2
num2 = 3
num3 = 4
answer = (num1 + num2) * num3
print("The answer is ", answer)
The answer is 14
The answer is 24
The answer is 2 + 3 * 4
The answer is 20
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
CPU
Quiz
•
7th Grade
15 questions
KS3 Y8 Kodu Quiz
Quiz
•
5th - 8th Grade
10 questions
Animal Rescue Websites Quiz 1
Quiz
•
7th Grade
15 questions
Computer Lab Rules
Quiz
•
KG - 8th Grade
12 questions
Creating Webpages
Quiz
•
6th - 8th Grade
10 questions
Java Quiz 1: Introduction
Quiz
•
6th - 12th Grade
13 questions
topologies
Quiz
•
7th - 8th Grade
10 questions
Check-up Exercise: Buttons
Quiz
•
7th 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
