| |
A1:
| The statement is false. You must always include the parentheses in your function calls, whether you are passing arguments to the function or not. |
| |
A2:
| You must use the return keyword. |
| |
A3:
| It would print 50. The tenTimes() function has no access to the global $number variable. When it is called, it will manipulate its own local $number variable. |
| |
A4:
| It would print 500. We have used the global statement, which gives the tenTimes() function access to the $number variable. |
| |
A5:
| It would print 500. By adding the ampersand to the parameter variable $n, we ensure that this argument is passed by reference. $n and $number point to the same value, so any changes to $n will be reflected when you access $number. |