P4B Quiz (3):敘述、縮排及註解 by KC 2023-03-23 written by KC 2023-03-23 0 comment Welcome to your quiz -「 P4B Quiz (3):敘述、縮排及註解」 Name Email 1. 下列何者是 Python 中的註解 (comments) ? * This is a test # This is a test /* This is a test */ // This is a test 2. 在下面的程式代碼中,"x" 是什麼? x = 42 函式 (function) 中央處理器 (Central Processing Unit, CPU) 常數 (constant) 變數 (variable) 3. 以下哪一項不是 Python 的關鍵字? if for speed else 4. 以下哪一個變數是“最容易記”的? x1q3z9ocd x variable_173 hours 5. 以下哪項不是 Python 的關鍵字? break else continue iterate 6. 在下面程式代碼中,"98.6" 是什麼? print(98.6) 迭代(iteration)/迴圈(loop)敘述 條件式(conditional)敘述 變數(variable) 常數(constant) 7. 下列程式代碼會列印輸出什麼? print("123" + "abc") 這是一個語法錯誤,因為您不能添加字串(string) 123+abc 123abc hello world 8. 以下哪一個是錯誤的 Python 變數名稱? _spam SPAM23 23spam Spam 9. 執行以下語句時 x 的值會是多少? x = int(98.6) 6 98 99 100 10. Python 中的 input() 函式有什麼作用? 擷取螢幕某個區域畫面 讀取運行程式的記憶體 連接到網路並檢索網頁 暫停程式並從使用者那裡讀取資料 Time is Up! Time's up Share 0 FacebookTwitterPinterestEmail previous post P4B Quiz (2):變數及關鍵字 next post P4B Quiz (4):運算子、輸入、輸出及 import 簡介