Twa kɔ nsɛm atitiriw so
Log in
Sign up for FREE
arrow_back
Laabri

Functions Worksheet

star
star
star
star
star
Last updated over 4 years ago
13 Nsɛmmisa
5
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

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

1
1
1
Asemmisa {{asɛmmisaAhyɛnsode}}
2.
Asemmisa {{asɛmmisaAhyɛnsode}}
3.
Asemmisa {{asɛmmisaAhyɛnsode}}
4.

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

1
Asemmisa {{asɛmmisaAhyɛnsode}}
5.

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

1
Asemmisa {{asɛmmisaAhyɛnsode}}
6.

What is the value of x?

1
Asemmisa {{asɛmmisaAhyɛnsode}}
7.

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

1
Asemmisa {{asɛmmisaAhyɛnsode}}
8.

On line 9, how many values are given?

1
Asemmisa {{asɛmmisaAhyɛnsode}}
9.

On line 10, how many values are given?

1
Asemmisa {{asɛmmisaAhyɛnsode}}
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
Asemmisa {{asɛmmisaAhyɛnsode}}
11.

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

1
Asemmisa {{asɛmmisaAhyɛnsode}}
12.

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

1
Asemmisa {{asɛmmisaAhyɛnsode}}
13.

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