
Python Basics Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Devin Lachapelle
Used 1+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of a variable in Python?
To store data
To print text
To perform calculations
To comment on code
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you concatenate (add together) two strings in Python?
str1 + str2
str1 . str2
str1, str2
concatenate(str1, str2)
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the print() function do in Python?
Takes user input
Displays output to the console
Performs mathematical operations
Declares variables
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is used to take user input in Python?
get_input()
read_input()
input()
user_input()
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following is a valid string in Python?
"dog"
dog
(dog)
^dog^
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code?
x = "apple"
y = "banana"
z = x + y
print(z)
x + y
apple banana
z
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What data type does the input() function return?
Integer
Float
String
Boolean
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python Inbuilt functions

Quiz
•
12th Grade
10 questions
Python Strings

Quiz
•
12th Grade
12 questions
Python Basics 2

Quiz
•
9th Grade
10 questions
แบบทดสอบก่อนเรียนภาษาPython

Quiz
•
10th Grade
15 questions
ONE 6th FORM Introduction to Python Basics

Quiz
•
11th Grade
14 questions
Y9 - Module 2 - KT1 Python Basics

Quiz
•
9th Grade
8 questions
Procedures Code Tracing

Quiz
•
9th Grade
14 questions
ABC in python

Quiz
•
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
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade