placeholder image to represent content

Python Functions

Quiz by Yaithd Daniel Olivas Arcos

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
10 questions
Show answers
  • Q1

    It is a piece of code that only runs when it is called.

    Users re-arrange answers into correct order
    Jumble
    300s
  • Q2

    Choose the correct keyword to create a function.

    my_function

    create

    define

    def

    300s
  • Q3

    Choose the correct order to create a function. 

    Users link answers
    Linking
    300s
  • Q4

    To call a function we need to type the function name followed by the parenthesis containing the values for the parameters. 

    true
    false
    True or False
    300s
  • Q5

    Which of the following codes describes a function that prints "Hello world"?

    Answer Image
    Answer Image
    Answer Image
    Answer Image
    300s
  • Q6

    Choose the correct line of code to call a function whose name is sum and its parameters are 3 and 4.

    sum[3,4]

    sum()3,4

    sum(3,4):

    sum(3,4)

    300s
  • Q7

    Link the pieces of code with their corresponding name. 

    Question Image
    Users link answers
    Linking
    300s
  • Q8

    Choose the line of code to call a function whose name is "find" and has 3 parameters. 

    def find(2,3,4)

    find(2,4,6,8)

    find(2,3)

    find(2,4,6)

    300s
  • Q9

    With "return" we can obtain the result of an operation inside a function.

    true
    false
    True or False
    300s
  • Q10

    Choose the code that doesn't have any mistakes. 

    Answer Image
    Answer Image
    Answer Image
    Answer Image
    300s

Teachers give this quiz to your class