

f is hexadecimal for 15, which could have been more clever
real is inherently unsuitable for human currencies since those are usually accounted for in cents or hundredths of cents, and floating-point rounding errors are not great for financial accountability, so rational formats with a denominator of 100 or 10,000 would be more suitable.




Not a problem, I’m sure they couldn’t get worse.
The best answer for a basic CS exam would probably be to say to use an integer to store dollars, and an another to store cents.