CMPS 203: Take Home Midterm
The CS 203 questions may require familiarity with the primary languages listed here, sufficient to write and understand small code fragments, but not necessarily to know technicalities of syntax or obscure features:
  • C Lisp (Scheme)
  • C++
  • Perl
  • Pascal
  • ML
  • Java
  • Algol60
  • Fortran
  • Prolog
  • Ada
DUE NEXT TUESDAY JUNE 2, 1998
  1. (10) What is ``lvalue'' and ``rvalue''? 1 sentence each. In the declaration: int i=7, *p = &i; what is i's lvalue and rvalue?

  2. (25) Define the term ``overloading''. 2 or 3 sentences.
  3. (25) Define in one or two sentences the following concepts, show an example, and give a programming language that has the feature:
  4. (25) What are three important PL design objectives? Discuss their importance. For each objective, give a different PL that treats the objective as crucial. Explain why that PL has the objective.
  5. (15) Define exceptions. Show how exceptions can be treated in programming. Give a typical example of a hardware exception and its treatment. Give a typical example of a software exception and its treatment.
TURN IN AS A TYPED or PRINTED SET of answers.