Font size
S
M
L
XL
Worksheetspython quiz
Total questions: 10
Worksheet time: 6mins
Name
Class
Date
1.
A(n) _____ is a variable that receives an argument that is passed into a function
a)
Argument
b)
Parameter
c)
Named Constant
d)
Global Variable
2.
In python the ' STRING data type' can be defined as...?
a)
holds alphanumeric text
b)
hold whole numbers
c)
holds numbers with a decimal point
d)
holds either a true or false value
3.
Gjdk is not a good name for a variable, why?
a)
It starts with a capital letter.
b)
It does not contain any spaces.
c)
There are no vowels.
d)
It's meaningless.
4.
Variable names can start with...
a)
...only capital letters.
b)
...any number, letter or an underscore (_).
c)
...any letter or symbol.
d)
...any letter or an underscore (_).
5.
哪個資料型態是浮點數
a)
3
b)
3.1
c)
3.0
d)
28
6.
下列哪一個是列表list
a)
(1, 2, 3)
b)
{1, 3, 5}
c)
[2, 5, 7]
d)
{1:2, 4:5}
7.
In python the ' INTEGER data type' can be defined as...?
a)
holds alphanumeric data as text
b)
holds whole numbers
c)
holds numbers with a decimal point
d)
holds either ‘true’ or ‘false’
8.
"hello" + "world" = ?
a)
hello world
b)
helloworld
c)
Hello world
d)
HelloWorld
9.
"Dada" * 2 =?
a)
"Dada dada"
b)
"Dada Dada"
c)
"Dadadada"
d)
"DadaDada"
10.
哪一個的布林值是true
a)
1 == 1
b)
1 == 2
c)
1 in [1, 4, 6,]
d)
"python" == "Python"
Reset
