Functions Worksheet

By Portia M
starstarstarstarstarstarstarstarstarstar
Last updated over 2 years ago
13 Questions
5
1.
In your own words, explain and label each of the 5 spots.

1
2.
This function has _______ parameter.
1
3.
The name of this function is called _______
1
4.
What is the value of name when used at hotspot 5.?
1
5.
The function created needs to be called in order to use it. How do you call the function?
1
6.
What is the value of x?
1
7.
If I wanted the value of x to change based on a value that I want. What should I do?
1
8.
On line 9, how many values are given?
1
9.
On line 10, how many values are given?
1
10.
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
11.
This code example is a return function. What are some differences you notice about this function from others?
1
12.
On line 9, how do you think the code is working behind the scenes?
1
13.
On line 8, if the user typed in "no" instead. What would happen?