wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SITCON Camp Online 挑戰二

Total questions: 15

Worksheet time: 21mins

Name
Class
Date
1.
以下哪個指令可以跳出迴圈?(1分)
a)
break
b)
continue
c)
pass
d)
stop
2.

小石的穿搭出門依照這段程式執行


根據這段 Python 程式,請問溫度在 34 度,那麼今天小石會採取什麼樣的動作?(3分)

a)

穿短袖

b)

穿長袖

c)

不出門

d)

不穿衣服

3.
本次營隊的標語?(1分)
a)
未來之光
b)
源力崛起
c)
飛向宇宙
d)
拯救小石
4.

上述 Python 程式碼會印出什麼?(3分)

a)

2OwOOWo

b)

6

c)

OWOOWo2

d)

發生錯誤

5.
下列哪種型態不能作為 dictionary 的 key?(1分)
a)
int
b)
str
c)
dict
d)
tuple
6.

考慮以下程式,請問執行結果為何?(3分)

a)
b)
c)
d)

會發生錯誤

7.
在函式內宣告的變數是?(1分)
a)
區域變數
b)
全域變數
8.

考慮以下程式,請問 foo 函式的回傳值型態是?(3分)

a)

list

b)

dict

c)

tuple

d)

None

9.
Python 函式名稱使用大寫字母是否可以執行?(1分)
a)
true
b)
false
10.
vim 該如何儲存檔案並退出?(1分)
a)
:wq
b)
:w
c)
:q
d)
:s
11.
在程式中若要使用math套件的sprt函式,又要使用別名squareRoot,則匯入敘述,下列何者正確?(3分)
a)
from math.floor as squareRoot
b)
from math impoart floor as squareRoot
c)
import math.floor as squareRoot
d)
impoart floor from math as squareRoot
12.
以下哪位 YouTuber 曾經送過 SITCON 門票(3分)
a)
佑來了
b)
Linzin 阿哲
c)
NiceChord (好和弦)
d)
在地上滾的工程師 Nic
13.
若a.b.c.d.e均為整數變數,下列哪個算式計算結果與a+b*c-e計算結果相同?(1分)
a)
(((a+b)*c)-e)
b)
((a+b)*(c-e))
c)
((a+(b*c))-e)
d)
(a+(b*(c-e)))
14.
在程式中要從0.0~1.0之間隨機產生一個浮點數,則下列何整正確?(1分)
a)
random.randint(0,1)
b)
random.randrange(0.0,1.0)
c)
random.random(0,1)
d)
random.random()
15.

請問該程式碼會出現甚麼結果(5分)

a)

2417851639229258349412352 7

b)

68921 43

c)

65537 65539

d)

134217728 6