Functions Worksheet

Last updated almost 4 years ago
13 questions
5

In your own words, explain and label each of the 5 spots.

1
This function has _______ parameter.
1
The name of this function is called _______
1

What is the value of name when used at hotspot 5.?

1

The function created needs to be called in order to use it. How do you call the function?

1

What is the value of x?

1

If I wanted the value of x to change based on a value that I want. What should I do?

1

On line 9, how many values are given?

1

On line 10, how many values are given?

1

If lines 9 & 10 are using the same function but have a different number of values, how is it possible that the program works?

1

This code example is a return function. What are some differences you notice about this function from others?

1

On line 9, how do you think the code is working behind the scenes?

1

On line 8, if the user typed in "no" instead. What would happen?