What sort of questions should I expect?
The Paper-and-Pencil
portion of the exam contains problems in which you:
-
Trace code by hand,
where such code contains
function calls,
function definitions, and
FOR .. RANGE statements.
- Including functions that call functions that call functions ...
- And functions that return values
- And functions that are called multiple times in a program.
-
You are restricted to the SINGLE-parameter form of the RANGE expression
throughout both parts of Exam 1.
-
Write short snippets of code to do various things,
including:
-
loop according to a pattern with a
FOR .. RANGE statement
(we may restrict you the the SINGLE-parameter form of RANGE),
-
construct
an object that is an instance of a class new to you,
-
call methods on such an object, and
-
reference instance variables on such an object.
-
Indicate what names (variables) are valid at what places,
thereby demonstrating your understanding of scope.
-
Write a short but complete implementation of a function
whose specification you are given.
plus possibly other problems similar to the above.
Do you have a SAMPLE EXAM that I might see?
-
Yes, here is the
paper-and-pencil portion
of a sample Exam 1.
-
Sorry, no answer key, but we are happy to check any answer for which you are uncertain,
or to help you get started on a problem,
for the above Sample Exam 1.