Skip to content

Packs / education-public

quiz-from-question-bank

generate randomised, reproducible quiz versions and answer keys from a question bank

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-education-public

Install

logicpacks pack use education-public/quiz-from-question-bank
get_pack education-public/quiz-from-question-bank

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: python-stdlib
  • Checks: 2 in outcome/checks.yaml
  • Code: quiz.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

Generate randomised, reproducible quiz versions and answer keys from a question bank.

Steps

  1. Keep the question bank as JSON with the correct answer text.
  2. Run quiz.py with a seed per class/section; store the seed.
  3. Print versions; mark with the KEY line.

Edge cases

  • Options like 'All of the above' must not be shuffled; keep them out of shuffled banks.
  • Bank smaller than --n errors out.

Don'ts

  • Don't publish the bank or keys where students can find them.

Routes (free first)

  1. python-stdlib: code/quiz.py (no install).