wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CodeMonkey程式觀念測驗(琢思 201812078)

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

"x.times - >"這個語法是程式裡的哪一種概念?

a)

序列(sequence)

b)

變數(variable)

c)

迴圈(loop)

d)

參數(argument)

2.

請問語要讓猴子吃完香蕉,程式要怎麼寫?

a)

3.times ->

....turn left

....step 5

b)

4.times ->

....step 5

....turn left

c)

4.times ->

....turn left

....step 5

....turn right

....step 5

d)

3.times ->

....step 5

....turn left

3.

4.times ->

step 10

step -10

turn right

以上程式碼,適用哪一隻猴子?

a)
b)
c)
4.

x = 10

step x

這二行程式裡,哪個元素是"變數"(variables)?

a)

x

b)

10

c)

step

d)

=

5.

在程式世界裡,「變數」(variables)指的是什麼?

a)

一行程式,例如 step 20

b)

預先設定給電腦供儲存數值的空間

c)

其實就是「參數」(argument)

d)

不能被變更的數值

6.

假設猴子要向前走20步才能吃到香蕉,以下哪個是錯的?

a)

step 20

b)

x = 10

y = 10

step x+y

c)

20.times ->

  step 1

d)

x = 10

step 20-x

7.

哪一個函數(function)可以幫我們量出距離?

a)

turnTo

b)

x.times ->

c)

distanceTo

d)

step

8.

哪個程式是錯的?

a)

x = 15

4.times ->

   turn right

  step x

b)

4.times ->

   turn right

  step 15

c)

step 15

turn right

step 15

turn right

step 15

turn right

step 15

d)

x = distanceTo bananas[0]

4.times ->

  turn right

  step x

9.

使用哪二個函數可以解決「方向」與「距離」的難題?(複選)

a)

step

b)

turnTo

c)

distanceTo

d)

x.times

10.

"step distanceTo banana"

請問這行程式,哪一個函數會先被執行?

a)

step

b)

distanceTo

c)

同時執行