NEW
Font size
WorksheetsPython Basics Quiz
Total questions: 20
Worksheet time: 10mins
What is Python primarily described as in the lesson?
A compiled language used only for game development
An interpreted language with readable syntax, important in web development, data science, and automation
A hardware programming tool for robotics
A markup language like HTML
Why is Python considered beginner-friendly according to the lesson?
It requires complex setup and compilation
It has readable syntax and provides a strong foundation for logic and other languages
It only supports advanced mathematical computations
It is exclusively used for mobile app development
Which of the following is an example of famous software mentioned in the lesson that uses Python?
Microsoft Word
Instagram backend
Adobe Photoshop
Google Chrome browser
What does the print() function do in Python?
It stores data in a variable
It displays output to the screen
It takes user input
It performs arithmetic calculations
What happens if you forget the parentheses in print("Hello, world!")?
The program runs but prints nothing
It causes a syntax error
It prints the string without quotes
It automatically adds the parentheses
Why do we use indentation in Python, as per the exit ticket question?
To make the code look pretty
To define blocks of code, like in loops or functions
To separate variables from operators
To comment out lines of code
What symbol is used for comments in Python?
//
/*
#
In the independent practice on Day 1, what are students encouraged to experiment with in print statements?
Complex loops
\n for new lines and formatting
Database connections
File reading
What is a variable in Python, using the analogy from the lesson?
A mathematical equation
A labeled box where you store a value
A function that prints output
A type of operator
Which of the following is an example of declaring a string variable?
age = 17
height = 1.75
name = "Ali"
grade = A
What data type is used for whole numbers in Python?
float
str
int
bool
What would happen if you try to store a word in a variable meant for numbers without quotes?
It automatically converts to a number
It causes an error because strings need quotes
It stores it as a float
It prints the word directly
How do you take user input in Python for an integer value?
age = input("Enter your age: ")
age = int(input("Enter your age: "))
age = str(input("Enter your age: "))
age = float(input("Enter your age: "))
Which operator is used for floor division in Python?
/
%
//
*
What does the % operator do?
Addition
Remainder (modulo)
Multiplication
Assignment
In the guided practice on Day 2, what does the program ask the user to input?
Their name and age
Two numbers
A single string
A list of values
What is the purpose of the assignment operator (=) in Python?
To compare two values
To store a value in a variable
To perform subtraction
To print output
In the independent practice on Day 2, what task are students given?
Print a hello world message
Calculate and display the average
Create a game
Install a code editor
According to the bell work on Day 1, what is the question asked?
What is Python?
In your own words, what is computer programming?
Why learn variables?
How to use operators?
What is the main objective shared across both days in the lesson?
Learn advanced Python libraries
Describe basics of Python, write simple programs, declare variables, take input, and use operators
Focus only on web development
Install multiple code editors
