
Python Basics for Grade 9 Students
Authored by Sushmita Ms.
Other
9th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct file extension for Python files?
.txt
.java
.cpp
.py
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable in Python?
You must use 'define variable_name as value' to create a variable in Python.
Variables in Python are created using 'var variable_name : value'.
You create a variable by declaring it with 'let variable_name = value'.
You create a variable in Python by using the syntax 'variable_name = value'.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define a function in Python?
function
method
def
define
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid list in Python?
[1, 2, 3]
{1, 2, 3}
[1; 2; 3]
(1, 2, 3)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print(2 ** 3)?
8
6
4
9
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you start a comment in Python?
Use the hash symbol (#) to start a comment in Python.
Start a comment with double slashes (//) in Python.
Begin a comment with the at symbol (@) in Python.
Use the dollar sign ($) to start a comment in Python.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to read input from the user?
fetchUserInput()
readInput()
input()
getInput()
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?