Wednesday, February 11, 2009

Chapter 3 Review Questions

  1. C ~ Variables are temporary memory locations.
  2. D ~ All names are valid.
  3. C ~ Procedure level variables are only known to its own procedure.
  4. A ~ Literal constant doesn't change while the program is running.
  5. D ~ Variables can change.
  6. C ~ Objects is the default value
  7. B ~ price = 2.89D
  8. C ~ isConverted = TryParse.Decimal (inputRate, rate)
  9. A ~ Add and then convert.
  10. D ~ commission = Convert.ToSingle(sales) * 0.5S
  11. A ~ Const Rate As double - .09
  12. C ~ Convert to string
  13. A ~ ' to comment
  14. A ~ block level variables are used the most
  15. C ~ Implicit off
  16. A ~ Foucs()
  17. C ~ You need "" around strings.
  18. B ~ It needs ()
  19. A ~ Logical error
  20. C ~ D stands for decimal

No comments:

Post a Comment