NEW
Font size
S
M
L
XL
WorksheetsPython MCQS Assessment
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
What is the word (command) used to display numbers and text on the screen?
a)
print
b)
input
c)
output
d)
command
2.
What is a variable?
a)
A box(memory location) where you store values
b)
a type of graphics
c)
Data type
d)
a type of memory
3.
What will be the output?
name = "Dave"
print (name)
a)
Dave
b)
'Dave'
c)
name
d)
(name)
4.
What is Python?
a)
text based programming language
b)
word processor
c)
spreadsheet
d)
block based programming language
5.
What extension must you add to the end of a file when saving?
a)
.xlsx
b)
.pptx
c)
.docx
d)
.py
6.
What does the term 'debug' mean?
a)
Identify errors and fix them.
b)
Making a calculation
c)
A set of instructions
d)
Looking at code
7.
Converts a number to a string
a)
str()
b)
int()
c)
parseInt()
d)
convert
8.
The correct way to write a variable in Python?
a)
my_variable = 10
b)
my variable = 10
c)
my_variable is 10
d)
my_variable: 10
9.
What is python named after
a)
The snake
b)
Television show called Monty Python
10.
What is syntax?
a)
Syntax is the word used to describe an error
b)
Syntax is the rules of the programming language
c)
It is used to read information
d)
It is used to output information
Reset
