WorksheetsPython 4.2 and 4.3
Total questions: 8
Worksheet time: 3mins
Name
Class
Date
1.
Python every comment begins with which symbol?
a)
@
b)
*
c)
#
d)
!
2.
IDLE uses color to show different type of code. Red color is for______?
a)
comment
b)
string
c)
output
d)
print function
3.
IDLE uses color to show different type of code. Green color is for______?
a)
comment
b)
string
c)
output
d)
print function
4.
IDLE uses color to show different type of code. Purple color is for______?
a)
comment
b)
string
c)
output
d)
print function
5.
The rules of programming language is called?
a)
python
b)
comment
c)
syntax
d)
siren
6.
Which one is the special print command for makes a blank line?
a)
print ("\N")
b)
Print ("\N")
c)
print ("\n")
d)
print (n)
7.
The message will tell users what they should type in. This message will called a_______?
a)
prompt
b)print
c)
pending
d)
push
8.
Here is a line of python. What is the name of variable? Name = Alex
a)
Name
b)
Alex
c)
=
d)
Name = Alex
100 %
