What is a function in Python?, A type of loop, A block of reusable code, A variable, A comment, Which keyword is used to create a function?, function, create, def, fun, Which line correctly defines a function named greet?, function greet():, def greet():, greet def():, create greet(), How do you call a function named hello?, call hello, hello[], hello(), def hello(), What will this code print?, hello, Hi!, Error, Nothing, What is the value inside the parentheses of a function definition called?, Loop, Variable, Parameter, Return, What is the value passed when calling a function called?, Parameter, Argument, Return, Variable, Which function definition has one parameter?, def game():, def game(score):, game(score), score(game), What does this code print?, Hello, Sara, Error, Hello Sara, Which statement sends a value back from a function?, return, break, input, print, What will this code display?, 43, 7, add, Error, What happens if a function has no return statement?, It cannot run., It always returns 0., It returns None., It returns an empty string., Which of the following is a function call?, def square(x):, square(), return square, x = square, Why do programmers use functions?, To make programs slower, To replace variables, To create errors, To repeat code without rewriting it, How many times can a function be called?, one, twice, three, As many times as needed
0%
Functions
Jaa
Jaa
tekijä
Rymkemcha
Muokkaa sisältöä
Tulosta
Upota
Lisää
Tehtäviä
Tulostaulu
Näytä enemmän
Näytä vähemmän
Tämä tulostaulu on tällä hetkellä yksityinen. Jos haluat tehdä siitä julkisen, valitse
Jaa
.
Tehtävän omistaja on poistanut tämän tulostaulun käytöstä.
Tämä tulostaulu on poistettu käytöstä, koska vaihtoehdot eroavat tehtävän omistajan vaihtoehtoista.
Palauta Optiot
Monivalinta
on avoin malli. Se ei luo tulostaululle pisteitä.
SIsäänkirjautuminen vaaditaan
Visuaalinen tyyli
Fontit
Tilaus vaaditaan
Vaihtoehdot
Vaihda mallia
Näytä kaikki
Avoimet tulokset
Kopioi linkki
QR-koodi
Poista
Säilytetäänkö automaattisesti tallennettu tehtävä
?