Grading Modes Guide
Understand how VeraCodeChecker calculates scores and determines Pass/Fail labels using different grading modes and thresholds.
Overview
You choose one grading mode per activity:
- Per-Test (points per test) — Numeric grade is based on how many test cases pass, with points allocated per test.
- Percentage-Based — Numeric grade is simply (passed / total) × 100.
Mode A — Per-Test (points per test)
How the score is computed
This keeps the maximum at 100 no matter how many tests you create (useful when T is large, like 13).
Passing threshold (optional, independent of the score)
Choose one of two ways to define the threshold:
By count:
Pass if P ≥ required_pass_count.
By percentage:
Pass if P ≥ ceil(threshold% × T).
Example scenarios
| Tests (T) | Passed (P) | Threshold | Pass/Fail Label | Numeric Score |
|---|---|---|---|---|
| 6 | 3 | Count: 3 tests | Pass | 3 × 16.67 = 50.01 |
| 6 | 3 | Percent: 75% (needs 5) | Fail | ≈ 50.01 |
| 5 | 4 | Percent: 60% (needs 3) | Pass | 4 × 20 = 80 |
| 10 | 7 | Count: 8 tests | Fail | 7 × 10 = 70 |
Note: Scores may show decimals when 100 ÷ T isn't an integer.
Ordering of operations (what the system does)
- 1Run all tests → compute P (passed) out of T.
- 2Compute Score using per-test formula.
- 3Apply policy deductions (e.g., missing name/ID comment) if enabled.
- 4Evaluate Pass/Fail label against your threshold (count or percentage).
- 5Show final score and Pass/Fail label in the UI and Gradebook.
Mode B — Percentage-Based
How the score is computed
Passing threshold (optional)
Same options as Per-Test:
- •By count (e.g., at least 3 tests) or
- •By percentage (e.g., ≥ 75%).
Threshold sets the Pass/Fail label only; numeric score still comes from (P / T) × 100.
Example
Deductions & Adjustments
Academic Integrity Deduction (optional)
If the activity requires a name/ID in code comments and it's missing, a predefined deduction is applied after the base score is computed (in either mode).
Re-grade
- •Per-Test: toggle passed tests; score recalculates.
- •Percentage-Based: same effect (P changes → score changes).
- •Manual Review activities: teacher enters scores directly (threshold can still set the Pass/Fail label if you wish).
UI Configuration
Grading Mode
Passing Threshold (optional)
Quick FAQ
Does setting a high threshold lower a student's numeric score?
No. Threshold affects only the Pass/Fail label. The numeric score still uses your chosen formula.
Why does a student show Pass with only 50 points?
Because you may have set a count-based threshold (e.g., 3 of 6 tests to pass). They met the threshold (Pass) but still earned 3 × (100/6) ≈ 50.
Can I switch modes after publishing?
Avoid switching modes once students start submitting—scores and labels could change. If you must, re-validate and communicate the change to students.