
Python Basics Test
Authored by Mr Abbas
Computers
9th - 11th Grade
Used 78+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Python command is used to output information to the screen?
read
output
print
display
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is syntax?
Syntax is the word used to describe a variable
Syntax is the rules of the programming language
This is used to read information
It is used to output information
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will the following code do:
print("What is your name")
Allow you to type in your name
Display the words 'What is your name' on the screen
Allows you to enter information
prints your name to the screen
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Why will the following code not work:
print("Welcome to my program)
There is a quotation mark missing
print should be in uppercase
There should not be any brackets
print is spelt incorrectly
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The following code is used to create a variable and store a value. Why will it NOT work?
my number = 36
The variable can't store a number
A variable name cannot have any spaces
There variable name can't be called my number
It can't store the number 36
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which command in Python allows you to type information in?
print
IF
read
input
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you add comments to your code?
You can't add comments
By using the hash (#) symbol
By using the asterisk (*) symbol
Using the print command
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?