
接棒學院 CodingWizard Academy
Programming · 程式設計單元測驗卷
電腦與網路 Computers and the Internet · CEFR B1 · 滿分 100 分
教師用 · 含解答
班級 ______________座號 __________姓名 ______________日期 ______ / ______得分 __________
一、單字配對(20 分)
把右邊的代號填進左邊的括號裡。
- 1.variable( )
- 2.value( )
- 3.condition( )
- 4.loop( )
- 5.repeat( )
- 6.function( )
- 7.reusable( )
- 8.bug( )
- 9.debug( )
- 10.obvious( )
- A.變數
- B.迴圈
- C.可重用的
- D.顯而易見的
- E.條件
- F.函式
- G.除錯
- H.值
- I.重複
- J.程式錯誤
二、選擇題(30 分)
( )1.What does a computer do with your instructions?
- (A) What you meant
- (B) Exactly what you wrote
- (C) Whatever is fastest
- (D) It guesses
( )2.What is a variable?
- (A) A kind of loop
- (B) A named place that holds a value
- (C) An error
- (D) A screen
( )3.What is a loop for?
- (A) Making decisions
- (B) Repeating steps until a condition changes
- (C) Storing values
- (D) Displaying text
( )4.When should you write a function?
- (A) Never
- (B) When you find yourself writing the same thing twice
- (C) Only at the start
- (D) Only for maths
( )5.What is the first rule of fixing a bug?
- (A) Rewrite everything
- (B) Make the problem happen again on purpose
- (C) Restart the computer
- (D) Ask someone else
( )6.Why do clear names matter so much?
- (A) They run faster
- (B) Programmers read code far more than they write it
- (C) The compiler needs them
- (D) They use less memory
三、填空(每題填一個單字)(30 分)
- 1.A ____ is a named box that holds a value.(提示:變數)
- 2.A ____ repeats steps until something changes.(提示:迴圈)
- 3.Put the steps into a ____ so you can use them again.(提示:函式)
- 4.There is a ____ somewhere in this code.(提示:程式錯誤)
- 5.First ____ the problem, then you can fix it.(提示:重現)
- 6.Break the problem down until each step is ____.(提示:顯而易見的)
四、簡答(用英文回答,一到兩句即可)(20 分)
1.Why is programming mostly thinking rather than typing?為什麼寫程式主要是在思考而不是打字?
2.Explain rubber duck debugging and why it works.說明小黃鴨除錯法,以及它為什麼有效。