placeholder image to represent content

Programming Y9B Exam

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

    What is the definition of a function?

    It is a block of code that implements loops. 

    Is a block of code that only performs loops.

    Is a block of code that only runs when it's called.

    Is a block of code that performs a specific task all the time.

    300s
  • Q2

    What is the command to create a function?

    Users enter free text
    Type an Answer
    300s
  • Q3

    Choose the correct syntax to create a function.

    def + parenthesis + function name + colon

    parenthesis + def + colon + function name

    create + parameter + function name + colon

    def + function name + parenthesis + colon

    300s
  • Q4

    ​Choose the block of code without errors. The function takes a parameter, n, and returns 5*n.

    Answer Image
    Answer Image
    Answer Image
    Answer Image
    300s
  • Q5

    How many parameters does the following function have?

    Type the number. 

    Question Image
    Users enter free text
    Type an Answer
    300s
  • Q6

    What is the task the function in the image is performing?

    Question Image

    Prints the input seven times.

    Prints the input six times.

    Prints the input once.

    Implements a loop to sum numbers.

    300s
  • Q7

    ​To call a function, you need to type the function name followed by the values for the parameters enclosed by the parenthesis.

    true
    false
    True or False
    300s
  • Q8

    Match the command with its description.

    Question Image
    Users link answers
    Linking
    300s
  • Q9

    Find the code without any errors. 

    Answer Image
    Answer Image
    Answer Image
    Answer Image
    300s
  • Q10

    What is the task the code in the image is performing?

    Question Image

    The code returns var1

    The code returns var2

    ​The code returns the lowest input.

    ​The code returns the highest input.

    300s

Teachers give this quiz to your class