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
0%
Python_Chapter 3 Functions
Delen
Delen
Delen
door
Norzimahch
Men. atas
Sains Komputer
Pengaturcaraan
Inhoud Bewerken
Afdrukken
Embedden
Meer
Toewijzingen
Scorebord
Meer weergeven
Minder weergeven
Dit scoreboard is momenteel privé. Klik op
Delen
om het publiek te maken.
Dit scoreboard is uitgeschakeld door de eigenaar.
Dit scoreboard is uitgeschakeld omdat uw opties anders zijn dan die van de eigenaar.
Opties Herstellen
Labyrint
is een open template. Het genereert geen scores voor een scoreboard.
Inloggen vereist
Visuele stijl
Lettertypen
Abonnement vereist
Opties
Template wisselen
Alles weergeven
Er zullen meer templates verschijnen terwijl je de activiteit gebruikt.
Open resultaten
Kopieer link
QR-code
Verwijderen
Automatisch opgeslagen activiteit "
" herstellen?