
Python Basics Quiz
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Devin Lachapelle
Used 1+ times
FREE Resource
Enhance your content in a minute
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
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
15 questions
Bài 22-Kiểu dữ liệu danh sách
Quiz
•
10th Grade
10 questions
Trắc nghiệm bài 12 tin học 11
Quiz
•
11th Grade
10 questions
10 câu kiểu xâu tiết 1
Quiz
•
11th Grade
11 questions
Programming basics
Quiz
•
10th - 11th Grade
11 questions
Programming Quiz 1
Quiz
•
11th Grade
10 questions
C3.5 - Video 6 - AI
Quiz
•
11th Grade
8 questions
Basic computer
Quiz
•
9th - 12th Grade
12 questions
Evaluación Diagnóstica de Computación
Quiz
•
6th Grade - University
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
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
