1) Which keyword is use for function? a) define b) fun c) def d) function 2) Which of the following items are present in the function header? a) function name b) parameter list c) return value d) Both A and B 3) What is called when a function is defined inside a class? a) class b) function c) method d) module 4) If return statement is not used inside the function, the function will return: a) None b) 0 c) Null d) Arbitary value 5) Which operator is used in Python to import modules from packages? a) . b) * c) -> d) & 6) Lambda is a function in python? a) True b) False c) Lambda is a function in python but user can not use it d) None of the above 7) What is a variable defined outside a function referred to as? a) local variable b) global variable c) static Variable d) automatic variable 8) How is a function declared in Python? a) def function function_name(): b) declare function function_name(): c) def function_name(): d) declare function_name(): 9) Which one of the following is the correct way of calling a function? a) function_name() b) call function_name() c) ret function_name() d) function function_name() 10) You can also create your own functions, these functions are called? a) built-in functions b) user-defined functions c) py function d) None of the above 11) The code block within every function starts with a ? a) ; b) :: c) : d) % 12) Python supports the creation of anonymous functions at runtime, using a construct called a) lambda b) pi c) anonymous d) none of the mentioned 13) Does Lambda contains return statements? a) True b) False 14) Lambda is a statement. a) True b) False 15) __________ are the arguments passed to a function in correct positional order. a) Required arguments b) Keyword arguments c) Default arguments d) Variable-length arguments
0%
function
共用
共用
共用
由
Ikus041089
編輯內容
列印
嵌入
更多
作業
排行榜
顯示更多
顯示更少
此排行榜當前是私有的。單擊
共用
使其公開。
資源擁有者已禁用此排行榜。
此排行榜被禁用,因為您的選項與資源擁有者不同。
還原選項
測驗
是一個開放式範本。它不會為排行榜生成分數。
需要登錄
視覺風格
字體
需要訂閱
選項
切換範本
顯示所有
播放活動時將顯示更多格式。
打開結果
複製連結
QR 代碼
刪除
恢復自動保存:
?