Marking of Mid-Term Exam
Question 1
Marks were assigned as follows:
- 2 for the right range of values in the loop expression
- 3 for the right values in the if statement expression
- 3 for the right values printed
Question 2
Marks were assigned as follows:
- 1 for the function declaration
- 1 for the parameter declarations
- 1 for the local variable declarations
- 1 for initializing the minimum value
- 4 for the loop/iteration feature
- 4 for a conditional update of minimum value
- 1 for for updating the value
- 1 for returning the right value
Question 3
Marks were assigned as follows:
- 2 marks for listing the inputs and outputs
- 6 marks for listing enough states and their outputs
- 8 marks for the state transition table
(-2 if any transitions were abiguous, -1 if
there are missing input conditions)
- 4 marks for the state transition diagram
- 2 marks for the logic equations
- 4 marks for the combinational logic schematic
(2 marks if only partially done)
- 2 marks for the flip-flop schematic
APSC 380 Home Page