CS185C Spring 2004Practice Midterm 1
To study for the midterm I would suggest
you: (1) Know how to do (by heart) all the practice problems. (2)
Go over your notes three times. Second and third time try to see how much
you can remember from the first time. (3) Go over the homework problems.
(4) Try to create your own problems similar to the ones I have given and
solve them. (5) Skim the relevant sections from the book. (6) If you want
to study in groups, at this point you are ready to quiz each other.
The practice midterm is below. Here are some facts about the actual
midterm: (a) The midterm will be in class . (b) It is
closed book, closed notes. Nothing will be permitted on your desk except
your pen (pencil) and test. (c) You should bring photo ID.
(d) There will be more than one version of the test. Each version
will be of comparable difficulty. (e) If your cell-phone or beeper
goes off you will be excused from the test at that point and graded
on what you have done till your excusal. (f) One problem (less typos)
on the actual test will be from the practice test.
Student created solutions.
1. Briefly describe what the Gremlin feature of the POSE is. Distinguish
between POSE and the Palm Simulator.
2. Give the Palm OS launch codes to notify an application to: (a)
add a record to a database, (b) perform a typical launch, (c) do a find
operation. What Palm function is called with these lauch codes?
3. Briefly list the steps and the corresponding commands needed to compile
a 68k Palm Application by hand.
4. Explain how to use GDB with POSE.
5. Give the Palm OS error manager call that conditionally produces a
NonFatal error "Bob is too big" if the variable bob is greater than 20.
6. Give the PILRC syntax to create an error alert with title OUCH, message
don't tap me so hard, and a single button Okay. What is the analogous .xrd
code?
7. Give the PILRC syntax for a modal form with title test and two
labels with having messages of your choice.
8. Given the PILRC syntax for a menu with two pulldowns of your choice
with at least two shortcut using items on each of them.
9. Explain how to determine which button was pressed to close a Palm
Alert.
10. Explain with words and an example how to switch from a current given
form and a modal form and handle the information returned from this modal
form.
|