1) Choose incorrect answer about functions a) sub-program b) perform tasks c) tasks that may need to be repeated d) handle error 2) Identify element in function a) Define & call b) Define & pass data c) Declare & delete d) call & use 3) Identify true or false to define function = def average(total, num) a) True b) False 4) Choose incorrect answer of RULES FOR DEFINING FUNCTION IN PYTHON a) code block within every function starts with a colon (:) and is indented. b) The statement return [expression] exits a function, option passing back to the caller. c) Function blocks begin with the keyword define d) A return statement with no arguments is the same as return None. 5) Why use function? a) Complexity b) Reusability c) rewritten d) hard to maintain

Python_Chapter 3 Functions

リーダーボード

表示スタイル

オプション

テンプレートを切り替える

自動保存: を復元しますか?