SEE
THINK
EXPLORE
MARVEL
🔒

Facilitator Notes

This page contains exercise answers and teaching guidance for
Step 9 — OOP Refactor.
Not linked from the student pages.

Students: please go back and try the activities first.

← Back to student page

🧠 Concept Check — Answer Key (Step 9)

These 5 questions appear in the activity page after Tier 4 (post-calibration gate). Pass mark is 4 of 5 (80%). Students who fail may retry; the system records attempts and final score in Google Sheets.

Question (displayed to student)Correct Answer
Q1: Replacing literal 30 with CELL_SIZE = 30 throughout is better because: ✓ You only need to change one line to update all usages
Q2: What does a # TODO: add sound comment indicate? ✓ A note marking work planned for the future
Q3: Moving snake-drawing code into draw_snake() is an example of: ✓ Refactoring — isolating responsibility into a dedicated function
Q4: A helper function grid_to_pixel(col, row) is useful because: ✓ It converts coordinates in one place and can be called anywhere
Q5: Which of these is NOT a benefit of using named constants? ✓ Slightly faster execution
📊

Recorded in Google Sheet (Act_9 tab): concept_q1–concept_q5 (student’s 0-based answer index), concept_score_pct, concept_passed (1 = pass, 0 = fail), concept_attempts (retry count).

📊 Google Sheets — Data Collected (Act_9)

Every submission to this step writes one row to the Act_9 tab in the research spreadsheet. All 13 tabs (Student_Reg, Pre_Test, Post_Test, Act_1–Act_10) share the same student identity columns.

ColumnDescription
STUDENT IDENTITY (10 fields)
matricMatric / student ID
nameFull name
genderGender (Female / Male / Other)
ageAge in years
mykidMyKid / IC number
home_stateHome state in Malaysia
classClass or cohort code
school_codeSchool or programme code
phonePhone number
emailEmail address
SUBMISSION
stepStep number (9)
submitted_isoKL timestamp (UTC+8, ISO 8601)
PRE-CALIBRATION
cal_confidenceSelf-confidence before activity (1–5 scale)
cal_predictedPredicted score before activity (%)
cal_reflectionFree-text: what will be hard?
ACTIVITY TIERS
t1_score_pctTier 1 Fill-in-Blanks score (%)
t2_attemptsTier 2 Debug — number of attempts
refl2_textTier 2 reflection free text
t3_attemptsTier 3 Complete-Code attempts
t4_attemptsTier 4 New Task attempts
CONCEPT CHECK
concept_q1–concept_q5Student answer index (0-based) per question
concept_score_pctPercentage correct (0–100)
concept_passed1 = passed (≥80%), 0 = failed
concept_attemptsTotal retries
REFLECTIVE JOURNAL
jr1–jr5Journal prompts 1–5 free-text responses
POST-CALIBRATION
post_confidenceConfidence rating after activity (1–5)
post_actualSelf-reported actual score (%)
post_r1Reflection: how accurate was the prediction?
post_r2Reflection: what would you do differently?
calibration_indexpost_actual − cal_predicted (negative = overconfident)