
Python Exam

Quiz
•
Computers
•
7th Grade
•
Hard
Alejandra Vargas
Used 3+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Python

Quiz
•
7th - 9th Grade
15 questions
Python basics

Quiz
•
6th - 8th Grade
15 questions
Programming Quiz

Quiz
•
7th - 8th Grade
15 questions
Selection in Python

Quiz
•
1st - 9th Grade
10 questions
Python Inputs

Quiz
•
7th - 8th Grade
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
10 questions
python grade 7

Quiz
•
7th Grade
10 questions
Python Programming

Quiz
•
7th - 9th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade