1) Which keyword is used for function? a) Fun b) Define c) Def d) Function 2) Which of the following is the use of function in python? a) Functions are reusable pieces of programs b) Functions don’t provide better modularity for your application c) you can’t also create your own functions d) All 3) Which of the following is a feature of DocString? a) Provide a convenient way of associating documentation with Python modules, functions, classes, and methods b) All functions should have a docstring c) Docstrings can be accessed by the __doc__ attribute on objects d) All of the mentioned 4) Which are the advantages of functions in python? a) Reduce dublication b) Decomposing complex problems into simpler pieces c) Improve clarity d) All 5) What are the two main types of functions? a) Custom function b) Built-in function & User defined function c) User define d) System function

Papan mata

Gaya visual

Pilihan

Tukar templat

Pulihkan autosimpan: ?