
Python Basics Quiz
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Hazel Hazel
Used 8+ times
FREE Resource
Enhance your content in a minute
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in Python?
A reserved keyword
A container for storing data values
A function name
A type of data structure
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, which character is used to start a single-line comment?
//
#
/* */
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in Python?
2name
my-name
_age
class
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A constant is a value that:
Can be changed throughout the program
Remains unchanged once assigned
Must be defined with uppercase letters
Both b and c
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these options is a literal in Python?
A variable name
123.45
A function call
A list
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type does the value True belong to in Python?
Integer
Boolean
Float
String
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following declares a constant in Python (by convention)?
pi = 3.14
Pi = 3.14
PI = 3.14
pI = 3.14
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
25 questions
Understanding Strings and Functions Quiz
Quiz
•
8th Grade - University
22 questions
Number Systems & Binary Maths
Quiz
•
10th - 12th Grade
29 questions
Computer Parts
Quiz
•
9th - 12th Grade
25 questions
Python
Quiz
•
9th - 12th Grade
22 questions
Контрольный тест по программированию в Unity
Quiz
•
9th - 12th Grade
24 questions
Computer Architecture A Level CS
Quiz
•
10th - 11th Grade
22 questions
Итоговый тест 2023
Quiz
•
9th - 12th Grade
26 questions
Macromedia Flash
Quiz
•
8th Grade - Professio...
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
