Answer the following statements true (T) or false (F)
1. A function can have zero to many parameters and either zero or one return value(s).
2. Functions are ideal for use in menu-drive programs. When a user selects a menu item, the program can call an appropriate function to carry out the user's choice.
3. When a function just needs to use a copy of an argument passed to it, the argument should normally be passed by value.
4. It is possible for a function to have some parameters with default arguments and some without.
5. A function with a return type of bool must return a value of either true or false.
1. TRUE
2. TRUE
3. TRUE
4. TRUE
5. TRUE
You might also like to view...
What type of error occurs when a valid subject using a biometric authenticator is not authenticated?
A. A Type 1 error B. A Type 2 error C. A Type 3 error D. A Type 4 error
Given the following code snippet, what will be displayed on the web page if the user enters 6.35 at the prompt?
``` var A = prompt("Enter a number:"); document.write(parseFloat(A) + ", "); document.write(parseInt(A)); ``` a. 6.35NaN b. 6.35 6 c. 6.35, 6 d. 6.35, 6.35