
Python Basics Quiz
Quiz
•
Other
•
8th Grade
•
Practice Problem
•
Easy
Kiki Carozza
Used 1+ times
FREE Resource
Enhance your content in a minute
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
A type of Python version
A reserved word that cannot be used for naming
A name that is used to denote something or a value
A specific Python library
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
1_variable
variable_name
variable-name
variable name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is the number 5 in Python?
float
string
int
char
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? ```python x = 10 y = 5 print(x + y) ```
15
105
10
5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to write a conditional statement in Python?
if x > 10 then:
if (x > 10)
if x > 10:
if x > 10 then
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet? ```python if 5 > 2: print("Five is greater than two!") ```
Error
Five is greater than two!
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type would you use to store a person's age in Python?
String
Boolean
Integer
Float
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
18 questions
La Riforma protestante
Quiz
•
7th - 8th Grade
10 questions
Music General Knowledge -1
Quiz
•
5th - 12th Grade
10 questions
Intro to Singapore Water Problem
Quiz
•
6th - 8th Grade
10 questions
Anime
Quiz
•
KG - Professional Dev...
12 questions
Culture générale
Quiz
•
KG - University
11 questions
The Famous Five
Quiz
•
KG - Professional Dev...
10 questions
Extinct Animals
Quiz
•
7th - 9th Grade
10 questions
Instrumenty elektryczne i muzyka rozrywkowa
Quiz
•
1st - 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
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
Discover more resources for Other
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
15 questions
Product of Powers Property A1 U7
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
16 questions
8th U5L5 Graphs of Functions
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
