wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

編程語言測試

Total questions: 8

Worksheet time: 5mins

Name
Class
Date
1.

以下那項是正確的編程寫法?

a)

if x = 100:

b)

if x == 100:

c)

if x == 100

d)

else x == 100

2.

若想使用語文轉換文字, .recognise()應如何使用。

a)

display.recognise()

b)

tts.recognise()

c)

input.recognise()

d)

cloudspeech.recognise()

3.
a)

a

b)

b

c)

a b

d)

no output

4.
a)

a

b)

b

c)

a b

d)

no output

5.
a)

a

b)

b

c)

a b

d)

no output

6.

If a == On:

   Print(“yes”)

a 的值是”on”,會出現甚麼輸出?

a)

yes

b)

on

c)

no

d)

no output

7.

下列嘅個語句能檢測”off”有沒有出現在變量a的值當中。

a)

If "off" in a:

b)

If a in "off":

c)

If a=="off":

d)

If "off"==a

8.

以下哪一個變量名稱是可用的?

a)

12month

b)

input

c)

mon th

d)

month_