Marking of Final Exam
Marks were awarded for each question as follows:
- Question 1 (10 marks)
-
- 1 : correct inputs and outputs
- 1 : enough states (at least 4)
- 2 : in one-closed-valve states : continue only if door closed and button pressed
- 2 : in two-closed-valve states : no change if door closed and button pushed
- 2 : in two-closed-valve states : revert if door open and button pushed
- 2 : in two-closed-valve states : continue if door closed and button released
- Question 2 (10 marks)
-
(a)
- 1 : correct declaration including return type of void
- 2 : correct sequence of tests for corrects bits in the correct order
(b)
- 1 : function declaration including return and parameter types
- 1 : if/else statement with correct arguments
- 1 : correct sequence of values written to correct addresses
- 1 : correct interleaving of wait() statements
(c)
- 1 : correct function declaration including void return type
- 1 : correct while statement
- 1 : correct call to signal including correct argument
- Question 3 (4 marks)
-
- 2 : correct equation
- 2 : correct schematic
- Question 4 (12 marks)
-
- 4 : (a) 1 mark per right answer for part (a)
- 6 : (a) 1 mark per right answer for part (b)
- 2 : 1 mark for each of resolution (volts) and accuracy (bits)
EECE 485 Home Page