wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

python測試

Total questions: 15

Worksheet time: 6mins

Name
Class
Date
1.

請問現在寫的語言怎麼拚

a)

pythem

b)

pythen

c)

python

d)

pythom

2.

請問break用在for迴圈如何使用

a)

暫停一回合

b)

繼續

c)

暫停全部

3.

請問continue用在for迴圈如何使用?

a)

暫停一回合

b)

繼續

c)

暫停全部

4.

已知 x = 'Sandy' y = 'happy'

如何印出下列

Sandy happy

a)

print(x+y)

b)

print(x y)

c)

print(x,y)

5.

請問csv寫入有幾種寫法(在所教的課內)

a)

3

b)

2

c)

4

6.

請問下列會出現哪種執行結果

score = [80,98,50,60,74,66,53,60,80,32]

print(len(score))

a)

11

b)

10

c)

12

7.

list1 = [‘a’,’b’,’c’,’d’,’e’,’f’]

print(list1[ 2:5 ])

a)

c d e

b)

c d e f

c)

b c d e

d)

b c d e f

8.

請問random.randint是?

a)

隨機選列表元素的

b)

隨機選數字的

9.

今天下午教的class有幾類介紹

a)

2

b)

4

c)

3

d)

5

10.

承上題,哪3類

a)

實體物件

b)

實體變數

c)

實體函式

d)

實體屬性

e)

實體方式

11.

有了實體物件,參數一定要有甚麼

(a)  

12.

下列何者會出錯

a)

x = 5

print(y)

b)

x = 5

y = '10'

print(x+y)

c)

def n():

print("hello")

n(5)

13.

請問散佈圖如何畫圖

a)

plt.bar(x,y,c = 'r')

b)

plt.plot(x,y,c = 'r')

c)

plt.scatter(x,y,c = 'r')

14.

請問長條圖如何畫圖

a)

plt.scatter(x,y,c = 'r')

b)

plt.bar(x,y,c = 'r')

c)

plt.plot(x,y,c = 'r')

15.

請問折線圖如何畫圖

a)

plt.scatter(x,y,c = 'r')

b)

plt.plot(x,y,c = 'r')

c)

plt.bar(x,y,c = 'r')