
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
10 questions
ม.2 บทที่ 2 part 2 ความรู้การเขียนโปรแกรม Python

Quiz
•
7th Grade
8 questions
if...else statements

Quiz
•
6th - 8th Grade
15 questions
Y7 Python Mid Point

Quiz
•
7th - 12th Grade
10 questions
Python

Quiz
•
1st - 12th Grade
10 questions
Grade 7 Using Excel as Database-ICT

Quiz
•
7th Grade
10 questions
Python Programming

Quiz
•
7th - 9th Grade
15 questions
Programming Quiz

Quiz
•
7th - 8th Grade
5 questions
Y8 Basic Python Recap

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade