
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
13 questions
Unit #6 quiz 1

Quiz
•
11th Grade
10 questions
Strings & Integers

Quiz
•
6th - 9th Grade
12 questions
Computer basics

Quiz
•
9th Grade
16 questions
Internettet og computeren

Quiz
•
11th - 12th Grade
10 questions
Intro to Python

Quiz
•
KG - University
10 questions
Python Strings

Quiz
•
12th Grade
14 questions
Introduction to Strings

Quiz
•
12th Grade
15 questions
Python Inbuilt functions

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th 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
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade