# Unit 4, Lesson 9: Functions

## Quiz by McCartney, Callie R

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

Correct quiz answers unlock more play!

7 questions
• Q1

How do you TEACH the computer all the steps to complete for a new command?

Create a new Command

Define a Function

Call a Function

Function

30s
• Q2

How do you tell the computer that it is time in the code to RUN a function?

Define a Function

Create a new Command

Function

Call a Function

30s
• Q3

Sort the qualities of CALLING vs DEFINING a Function:

sorting:// Calling| Tells the computer to actually run the function, Can do this any number of times you want/need in your code, Nice and short, Goes in the code where you want it to actually happen, Is easier to do than writing all the steps again, Is easier to read than writing all the steps again: Defining| Teaches the computer what all the steps are of the new command, Only do this step once, Name it well, Goes at the bottom of your code like a glossary, Gets read like open notes every time the function is run.

30s
• Q4

On what line is the function defined?

11

6

9

15

30s
• Q5

On what line(s) is the function called?

6 & 11

15

6 & 15

11 % 15

30s
• Q6

On what line(s) is the function "floor" called?

3

10

2

1

30s
• Q7

On what line is the function "floor" defined?

2

5

10

15

30s

Teachers give this quiz to your class