next up previous
Next: About this document

Computer Programming II (CS2500)

Midterm Review, Spring 1997

These are some questions to help you review for the midterm. They are intended to help you study, but they will not replace studying the book and your notes.

  1. Describe the general problem solving method using a computer.
  2. Briefly discuss debugging and testing techniques.
  3. What are the syntax and semantics of a programming language? How are they different?
  4. Briefly describe each of the following: identifier, data type, variable, declaration, reserved word, standard identifier, procedure.
  5. What are the four elementary data types in Pascal?
  6. What is a type declaration? Why are type declarations important? What is the effect of a type declaration?
  7. What is a constant declaration? Why are they useful?
  8. What are semi-colons used for in Pascal?
  9. What arithmetic and boolean operations are available in Pascal?
  10. What structured data types are available in Pascal?
  11. Describe the syntax for declaring arrays and records in Pascal.
  12. What are pointer variables? What facilities does Pascal provide for working with pointers? Briefly discuss some of the issues involved in using pointers.
  13. What is an abstract data type? Give some examples.
  14. Describe the Stack abstract data type.
  15. Give an implementation of the stack ADT.
  16. Given some Pascal code, describe its output for given input.
  17. Write some Pascal code.
  18. Etc. ...





Tom Carter
Tue Mar 25 11:48:17 PST 1997