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
11 questions
Conditional statements
Quiz
•
7th Grade
10 questions
Intro to Python
Quiz
•
KG - University
15 questions
Programming Quiz
Quiz
•
7th - 8th Grade
15 questions
Programming - What Do I Know?
Quiz
•
7th - 9th Grade
8 questions
Y7 - Strings
Quiz
•
7th Grade
14 questions
Data types and Input
Quiz
•
7th - 9th Grade
10 questions
Python Programming
Quiz
•
7th - 9th Grade
9 questions
Python Programming Basics
Quiz
•
6th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check
Quiz
•
5th - 7th Grade
10 questions
Identifying equations
Quiz
•
KG - University
44 questions
El fin del año- 7th
Quiz
•
7th - 12th Grade
20 questions
Math Review
Quiz
•
7th Grade
14 questions
Subtracting Integers
Lesson
•
6th - 8th Grade
15 questions
Exponent Properties
Quiz
•
7th - 9th Grade