Challenge 1: What will the following code display?
firstName = "John"
print("Hello " + firstName)
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
9 questions
Python Basics
Quiz
•
6th - 12th Grade
10 questions
Intro to Python
Quiz
•
KG - University
14 questions
Data types and Input
Quiz
•
7th - 9th Grade
11 questions
Conditional statements
Quiz
•
7th Grade
10 questions
Introduction to Python Turtle
Quiz
•
7th - 8th Grade
12 questions
N5 SDD - Python input and output
Quiz
•
7th - 11th Grade
8 questions
Y7 - Strings
Quiz
•
7th Grade
11 questions
Python Intro 1
Quiz
•
7th - 12th Grade
39 questions
Respect and How to Show It
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions
Interactive video
•
6th - 8th Grade
20 questions
Multiplication Facts
Quiz
•
3rd Grade