a) The function EbayFee() will execute either 2, 3 or 4 assignment statements for the variable feeTotal, depending on the value of its argument.
b) If the argument of EbayFee() function is 0.0, the function will return 0.50, which is the base listing fee.
c) If the argument of EbayFee() function is 100.00, the function will return 5.50, which is the total fee for selling an item at that price.
How many assignments in EbayFee()?
a) Only one assignment statement for the variable feeTotal will execute.
b) If the argument is 0.0, EbayFee() function will return 0.50.
c) If the argument is 100.00, EbayFee() function will return 5.50.
a) FindLCM() calls FindGCD().
b) There are three user-defined function calls in the program code: GetPositiveNumber(), FindGCD(), and FindLCM().
a) False. After a function returns, its local variables lose their values and are destroyed. The next time the function is called, the local variables will be initialized with their default values.
b) False. A return address is the memory address where the program should return after finishing the execution of the function. It does not indicate the value returned by the function, which is typically stored in a register or on the stack.