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

ustvaril/-a

Lestvica vodilnih

Vizualni slog

Možnosti

Preklopi predlogo

Obnovi samodejno shranjeno: ?