
Basic Python Code Output Quiz
Authored by Charl Fourie
Religious Studies
7th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? print("Hello" + "World")
Hello + World
Hello World
HelloWorld
"HelloWorld"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly takes user input and stores it in a variable?
input = name()
name = input("Enter your name: ")
input("name") = name
print("Enter name: ") = name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is stored in the variable greeting after running this code? greeting = "Hi" + " there!"
Hi there
"Hi there!"
Hi there!
"Hi""there!"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? first = "John" last = "Smith" print(first + " " + last)
JohnSmith
John Smith
"John Smith"
first last
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed by this code? name = "Alice" print("Hello,", name)
Hello, Alice
Hello name
"Hello," Alice
Hello,Alice
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to declare and print a string variable?
name = input("What is your name?") then print(name)
input("What is your name?") = name then print name
name == "Tom" then output(name)
string name = input() then print(name)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output of this code: first_name = "Sam" print("Hi " + first_name + "!")
Hi Sam!
Hi + Sam + !
Hi first_name!
Hi "Sam"!
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
CLE - REVIEW TEST
Quiz
•
7th Grade
15 questions
Bhagavad Gita Quiz - 14, Chapter - 5
Quiz
•
KG - Professional Dev...
12 questions
God's Goodness
Quiz
•
6th - 12th Grade
14 questions
Matthew 1
Quiz
•
7th - 9th Grade
10 questions
Buddha Quiz
Quiz
•
1st - 12th Grade
10 questions
Sanskrit Quiz
Quiz
•
8th Grade - University
15 questions
Bhagavad Gita Chapter 9 - Quiz-34
Quiz
•
KG - Professional Dev...
10 questions
St. John Marie Vianney
Quiz
•
5th - 10th 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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Religious Studies
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
20 questions
7th grade ELA Vocabulary Review
Quiz
•
7th - 8th Grade
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
14 questions
Volume of rectangular prisms
Quiz
•
7th Grade
22 questions
Phases of the moon
Quiz
•
8th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
14 questions
finding slope from a graph
Quiz
•
8th Grade