Chapter 2

C++ SYNTAX AND SEMANTICS, AND THE PROGRAM DEVELOPMENT PROCESS

ANSWERS TO QUESTIONS

True/False

    1. True 4. False 7. True 10. True
    2. True 5. False 8. False 11. True

3. True 6. True 9. True 12. False

 

Multiple Choice

  1. c 16. d 19. d 22. e 25. c 28. d
  2. c 17. d 20. a 23. a 26. b 29. c
  3. d 18. a 21. c 24. c 27. a 30. d

Fill-In

31. body

32. case-sensitive

33. variable

34. functions

35. semantics

36. identifier

37. data type

38. heading

39. literal

40. assignment statement

    1. declaration
    2. named constant (symbolic constant)
    3. syntax
    4. unary
    5. exit status
    6. binary
    7. preprocessor
    8. header