
Python Basics Quiz

Quiz
•
Computers
•
10th Grade
•
Hard
Hazel Hazel
Used 8+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Α' Λυκείου Python programming

Quiz
•
10th Grade
25 questions
Python Class 9

Quiz
•
9th - 10th Grade
30 questions
Python Basic

Quiz
•
9th - 12th Grade
30 questions
Python Review 1

Quiz
•
9th Grade - University
25 questions
ОЛИМПИАДА ПО ИНФОРМАТИКИ

Quiz
•
10th - 11th Grade
22 questions
Python тілінде циклдар

Quiz
•
9th - 12th Grade
26 questions
Python middle

Quiz
•
8th Grade - University
25 questions
UH DPPLG - Python 2

Quiz
•
10th 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
Exploring Cybersecurity Techniques and Threats

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

Interactive video
•
7th - 12th Grade