Skip to main content

Module exercise_block

Module exercise_block 

Source
Expand description

“Now you try” exercise block for the Syntax Guide.

The reader writes code (Imperative — graded by exact program output), a page (Web — graded by the page’s own ## Test blocks) or FOL (Logic — graded structurally by the Learn grader) and checks it in place. The reference solution never reaches the DOM; the guide’s test suite proves it grades correct before it can ship.

Pedagogy surface: the kind badge names the exercise’s rung on the worked→completion→free ladder (Sweller/Renkl), hints disclose one at a time on demand and never spoil (Bloom’s corrective tutor), and every graded result feeds the SM-2 deck so the exercise resurfaces before it fades — a clean pass without hints schedules further out than a rescued one.

Structs§

ExerciseBlockProps

Functions§

ExerciseBlock