Marking Scheme of Lab Test 1
- Each program is given 2 pts for successful compilation.
- The first program has 9 test cases. Each successful test case is given 1 pt.
- The second program has 12 test cases. Each successful test case is given 1 pt.
- The maximum total is 25 pts.
NOTES:
- The code must follow the program specifications (e.g., using recursion) in order to get the full mark for each successful test case.
- On the marking sheet, the test cases are marked as "Successful", "Failed" and "Exception". "Exception" also means a failed test case; your program threw an exception when it should NOT have and our test program caught it. If your program threw an exception when it was supposed to, the output is "Successful".
- Many programs did not compile successfully. We did fix many errors (up to a certain point) and re-compile the programs. It happened often that as soon as we fixed one error, a few more were created. In that case, we read the code and gave 1 to 2 points depending on how we felt about the correctness of the algorithm.
- Many programs went into an infinite loop and terminated early before all the test cases were executed. Again we tried to modify the code to make them run (again up to a certain point). In a few cases we could not make the infinite loop disappear. In those cases, we read the code and gave 1 to 2 points depending on how we felt about the correctness of the algorithm.
- If you would like to have your lab test re-evaluated, please come to see the TA (Liping Han) during the following time slots:
- Monday, Oct. 26, 15:30-17:30, in CSEB-2013
- By appointment in special cases (lipingh @ cse . yorku . ca)