Practical AI-Assisted Development: Methods and Lessons from Shipping an Online Exam System Under Deadline
When you only have hours to deliver a working online exam system, what you need is not one specific tool but a repeatable method: shrink the scope to a minimal deliverable, turn messy question banks into structured data, map question types to stable interaction and grading rules, and deploy to an accessible environment. This article walks through that path from an engineering perspective—defining "good enough" up front, parsing and structuring question banks in three layers, designing one renderer/grader pipeline instead of six separate systems, choosing between local and cloud inference, working in interruptible slices, and keeping security and compliance as the baseline. It concludes with a reusable capability checklist rather than a software list.
Define “Good Enough” Before Talking About Productivity
When a last-minute exam system is requested, “good enough” typically means: candidates can open the page, answer each question type, and get correctness feedback or a score after submission; admins can import questions. Polished UI, complex permissions, and anti-cheating monitoring can all be deferred. Once the scope is pinned down, the value of AI coding tools becomes clear: they excel at generating page skeletons, form validation, and simple business logic under explicit constraints—but they cannot decide product boundaries for you.
Write one page covering: the list of question types, whether the exam is timed, whether backtracking is allowed, whether grading is instant or after submission, and whether results need exporting. These constraints directly determine the data model and API shape, and prevent the model from generating piles of code that don’t fit together.
The Question Bank Is the Real Bottleneck
In practice, question banks are rarely neat tables. You often get an exported or scanned document with single-choice, multiple-choice, true/false, fill-in-the-blank, short-answer, and hands-on questions mixed together; stems split across paragraphs; answers sometimes at the end of each question, sometimes in the middle, sometimes piled up at the end of the file. The only reliable anchor is usually the question-type heading.
Process it in three layers instead of expecting a single-shot perfect generation:
Layer 1: Layout restoration. When converting the document to plain text or a table, keep blank lines, numbering, and headings like “Single Choice / Multiple Choice.” Avoid aggressive cleaning at this stage, or you’ll lose the anchors.
Layer 2: Rule-based splitting. Split by headings first, then by question number within each block. For irregularly segmented stems, heuristic rules like “a new question number starts a new question; an answer keyword ends the stem” are more stable than chasing perfect NLU.
Layer 3: Manual spot checks. Sample several questions of each type and verify that stems, options, and standard answers are aligned. AI models are good at proposing split hypotheses and writing conversion scripts, but final correctness must be confirmed by a human—otherwise grading will fail systematically downstream.
After structuring, unify records into something like:
{"id": "q001","type": "single|multi|judge|blank|short|ops","stem": "...","options": ["A...", "B..."],"answer": ["B"],"score": 2}
For hands-on questions, put step instructions in stem and standard key points in answer or a separate scoring-points field, to support later manual review of subjective questions.
Question Types Drive the Interaction, Not the Other Way Around
Don’t build six entirely different systems for six question types. Build one “question renderer + answer collector + grader”:
- Single choice, true/false: single-value submission, exact match.
- Multiple choice: set submission. Decide upfront whether “all correct gets full credit, partial selection gets none or partial credit per rule”—the rule must be written into the requirements, or the AI-generated grading logic will contradict itself.
- Fill-in-the-blank: normalize blanks first (full-width/half-width characters, extra spaces), then decide between exact match or multiple accepted answer aliases.
- Short answer, hands-on: machines can only do a rough keyword or key-point coverage check; a manual review entry point is mandatory. For a temporary system, prefer “submit first, score later” over pretending fully automated precise grading is possible.
On the frontend, render all questions in one list loop and switch controls based on type. AI-generated code is much easier to modify this way, instead of one page per question type.
Local Inference vs. Cloud Capabilities
Developers often experiment offline with locally deployed open-source models first. The upside: data stays in-house and iteration has no API cost. The downside: on complex UIs, long-context question bank parsing, and multi-step tool calls, local models tend to produce code that “writes but doesn’t work”—dead buttons, out-of-sync state, styles that look like an outdated static page. This isn’t a gap that experienced operators can fully smooth over; it reflects differences in model capability, context window, and toolchain completeness.
A more reliable combination: do sensitive question bank cleaning in a controlled environment; use cloud-based intelligent application building or containerized deployment when you need better UI generation, workflow orchestration, and fast publishing. Use object storage for static assets and import files; use logs and monitoring to catch API failures and timeouts. Don’t treat “fully offline” as dogma—emergency delivery prioritizes availability and rollback capability.
Engineering Rhythm When Your Time Gets Interrupted
Planning to start in the morning but actually beginning in the afternoon is normal. The countermeasure is to slice the work into interruptible pieces: get 20 sample questions running end-to-end before batch importing; ship single-choice and true/false first, then add fill-in-the-blank and short-answer; preview locally first, then deploy to an accessible environment. AI coding tools shine at generating “import scripts, grading functions, simple pages” within a slice—not at generating an entire site while requirements are still in flux.
For informal, friend-style requests, nail down acceptance criteria: a 10-question sample exam with standard answers and expected scores prevents far more rework than a verbal “it just needs to work.”
Security and Compliance Baseline
Exam systems touch identity, grades, and question copyright. Even a temporary solution should: gate access by link or password, avoid embedding the full question bank in the frontend, apply basic validation on submission APIs, and make results visible only to authorized users. Manual review records for subjective questions must be traceable. These requirements are independent of any tool choice—they are the minimum bar for going live.
A Reusable Capability Checklist (Not a Software List)
What’s genuinely useful day to day is a combination of capabilities: document parsing and structuring, generating frontend and backend code against a schema, workflows that chain “import → assemble exam → answer → grade → export,” and publishing the app to an accessible environment with logs to observe failures. On the enterprise side, you can add object storage, a container platform, and monitoring/alerting so an emergency system can later migrate to a production environment.
Abstract the three-hour emergency into a template: question-type enums, a grading strategy table, import validation, minimal-permission publishing. Next time a request comes in, the debate won’t be “which magic tool,” but which segment requires human review and which can be generated. That’s what sustainable productivity improvement looks like.
