NEW
Font size
S
M
L
XL
WorksheetsPython
Total questions: 6
Worksheet time: 3mins
Name
Class
Date
1.
What is Python?
a)
A) Low-level language
b)
B) Markup language
c)
C) High-level programming language
d)
D) Machine language
2.
Which symbol is used for comments in Python?
a)
A) //
b)
B) #
c)
C) /* */
d)
D) --
3.
How do you print text in Python?
a)
A) echo("Hi")
b)
B) print("Hi")
c)
C) printf("Hi")
d)
D) display("Hi")
4.
What is a variable?
a)
A) A keyword
b)
B) A fixed value
c)
C) A container for storing data
d)
D) A function
5.
Which is a valid variable name?
a)
A) 2name
b)
B) my-name
c)
C) my_name
d)
D) class
6.
What is the data type of 10?
a)
A) float
b)
B) string
c)
C) int
d)
D) boolean
Reset
