This guide explains how we grade PE0, PE1 and PE2. Key PE2 details are highlighted in blue.
Finding your grades and comments
Open Canvas → Grades and select your practical exam. You can also find PE2 under Assignments → Practical Exam 2. Expand the feedback to see each question’s grade category, correctness marks, any standards deduction, final marks, comments, and links to your formatted code and autograder report.
How to download your code
In a WebTop terminal, run cs1010. Choose Download CS1010 content → Practical Exams, select your exam (PE0, PE1 or PE2 (pe-2)), then choose Download this content now. Once access is released, you can read and run your code on the submission branch. You cannot change what was graded.
Overall Grading Methodology
One grader TA with C experience grades each question across the cohort. The grader reads your code and assesses how much progress it makes towards a correct solution. The grade is not a count of passed or failed tests.
How Autograding Is Done
For each question, we run make format, make and make test, and record the build and test results. Tests can fail due to wrong output, a sanitizer finding (sanitizers were not enabled for PE0), or a timeout.
How Final Grading Is Done
Code that does not compile, exhibits undefined behaviour or loops indefinitely on valid input has at least one significant error. A compilation failure does not automatically earn zero. We do not grade automatic formatting or efficiency. A timeout caused by an otherwise correct but slow solution is not penalised. Exceptionally hard-to-read code may receive a standards deduction.
For solutions between the top and bottom bands, the grader comments on the main reason for the band. Other feedback is optional and may not list every issue.
Grade Categories
| Correctness | What it means |
|---|---|
| 100%: Correct solution | The code meets the question’s requirements. |
| 75%: One or two minor errors | Small issues, such as an off-by-one error or a narrow edge case, without missing the main requirement. |
| 50%: One significant error | One substantial issue or oversight. |
| 25%: Multiple major errors | Meaningful progress, but multiple substantial errors. |
| 0%: No solution / totally wrong | No coherent attempt or no meaningful progress towards a solution. |
Standards
Standards are assessed separately from correctness. See C Standards for Exercise Volumes. For PE0, we checked code intent (G2, applied conservatively), types (G3), booleans (G5), global variables (G6) and goto (G7).
A standards deduction is 0.25, 0.5 or 1 mark where applied. Deductions are shown in the score breakdown. Suggestions and warning-only feedback do not by themselves cost marks, and we do not count the same problem under both correctness and standards.
For PE2, standards feedback can cover const, memory ownership and cleanup, and safe input.
Final Score
For each question, multiply the maximum marks by the correctness percentage and subtract any standards deduction, stopping at zero. Add the question marks to get your overall score.
| Question | PE0 | PE1 | PE2 |
|---|---|---|---|
| Q0 | Motion (2) | Update and return (1) | Input (1) |
| Q1 | Calculator (2) | Flush (3.5) | Rm-rf (3.5) |
| Q2 | Longest climb (3) | Payment masking (3.5) | Trailing sum (3.5) |
| Q3 | Third power (3) | Cargo height (3.5) | Haze (3.5) |
| Q4 | Not applicable | Braces (3.5) | Braces (3.5) |
| Total and course weight | 10 marks (10%) | 15 marks (15%) | 15 marks (15%) |
Instructions and Reference Solutions
- PE0: Instructions PDF and Reference solutions
- PE1: Instructions PDF and Reference solutions
- PE2: Instructions PDF and reference solutions
These solutions are for reference. Other approaches can be correct.
Appeals Procedure
Use the appropriate form if you can show a technical or administrative error, or explain why your grade category, standards deduction or feedback is incorrect. For each question, cite the relevant part of this guide and point to the code or feedback. Passing more tests than another submission does not by itself justify a change.
A regrade can increase, decrease or leave your mark unchanged. Do not submit appeals by email.
| Exam | Form | Deadline |
|---|---|---|
| PE0 | PE0 appeals form | Sunday, 11 October, 23:59 |
| PE1 | PE1 appeals form | Monday, 9 November 2026, 23:59 SGT |
| PE2 | PE2 appeals form | Saturday, 28 November 2026, 23:59 Singapore time |