Predict-the-output trainer for MAKAUT BCA C exams.
- ✨ What is DryRun?
- 🎯 What v2 Does
- ✅ Why the Answers Are Trustworthy
- 🚀 How to Use
- 🧪 Try an Example
- 🛠️ Tech Stack
- 📁 Project Structure
- 🗺️ Roadmap
- 🔒 Privacy & Honest Limits
- 🤝 Contributing
- 💜 Credits
| 📝 | 🚫 | 🎯 | ✅ |
|---|---|---|---|
| Paper Exam | No Compiler | Predict Output | Dry-Run Table |
Train for the exam hall, not the IDE.
In MAKAUT (and most Indian universities), the C exam is written ON PAPER. No compiler, no run button. The paper asks:
Predict the output. Show a dry-run table. Find the error.
DryRun trains exactly that skill. 🏃
📝 Paper question:
int a = 5;
printf("%d", a++ + ++a);
🤔 You predict: 12
✅ DryRun says: Correct! + dry-run table explains why.
| Feature | What it does |
|---|---|
| 📝 19 C questions | Predict-the-output, filterable by topic chips |
| 📱 Beautiful mobile-first UI | Topic chips, progress bar, score pill, result ring |
| ⌨️ Type your predicted output | Get instant right / wrong + the dry-run explanation |
| 📊 Score | In questions correct + MAKAUT exam marks |
| 📵 Works on phone | No login, no server — just open index.html |
| Topic | What you practise |
|---|---|
| 🔢 Operators | ++, --, precedence, associativity |
| 🔁 Loops | for, while, do-while — trace the values |
| 📦 Arrays | Indexing, loops over arrays |
| 🔤 Strings | char arrays, string functions |
| 🧩 Functions | Call by value, recursion |
| 📍 Pointers | The tricky ones — *p, &a, pointer arithmetic |
| Claim | Proof |
|---|---|
| Every answer is proven | Every question in questions.json was compiled and run for real with gcc |
| Real output recorded | The verified field on each question records the real output |
| Never guessed | No answer was written from memory — all 19 were run and checked |
Answers are proven, never guessed. ✅
| Step | What to do |
|---|---|
| 1 | 🌐 Open the live site |
| 2 | 🏷️ Pick a topic chip — or do all 19 |
| 3 | 📝 Read the code, type your predicted output |
| 4 | ✅ Get instant right / wrong + the dry-run table |
| 5 | 📊 Watch your score + MAKAUT marks grow |
# Open index.html in any browser, or:
python3 -m http.server 8000
# then open http://localhost:8000#include <stdio.h>
int main() {
int a = 5;
printf("%d", a++ + ++a);
return 0;
}| 🤔 Your prediction | ___ (type it in DryRun) |
| ✅ DryRun reveals | The answer + a full dry-run table showing a at every step |
| 📊 Score | +1 question, + MAKAUT marks if correct |
| Layer | Technology |
|---|---|
| 🌐 Frontend | HTML5, CSS3, JavaScript |
| 📄 Questions | questions.json — 19 questions, each gcc-verified |
| 🖥️ Original | CLI version in Python — ../dryrun/dryrun.py |
| 🌐 Hosting | GitHub Pages |
🏃 dryrun/
│
├── 🏠 index.html # Main site — quiz UI, topic chips, score
├── 🎨 style.css # All styling — mobile-first, result ring
├── ⚙️ app.js # All logic — quiz, scoring, dry-run reveal
├── 📄 questions.json # 19 C questions, each with verified output
├── 🖼️ favicon.ico # App icon
└── 📖 README.md # You are here ✨
| Version | What's in it |
|---|---|
| ✅ v2 | Web quiz (this version) — topics, score, dry-run reveal, beautiful UI |
| 🔜 v3 | Spot-the-Error mode, Fill-the-Dry-Run-Table mode, timed MAKUT mock test |
| 🔮 v4 | Login + progress history, 50+ questions, BCA Sem-1 PYQ sets year-wise |
../dryrun/dryrun.pyThe terminal trainer this web version grew from. ☕
- 🔑 No login, no server — everything runs on your device
- 📵 Works offline — open
index.html, practise anywhere - 💾 No data leaves your phone — your score stays with you
Honest limit: DryRun trains predict-the-output — the paper skill. It does not run your code (there's no compiler in the browser), and its 19 questions cover the most common C traps, not every possible exam question. For the full exam, practise with your MAKAUT PYQs too.
Found a C trap DryRun doesn't cover? A question with a wrong verified output?
Open an issue with the code + the real gcc output — proven answers only, never guessed. 🏃
📧 Email: [email protected]
🏃 Train for the exam hall, not the IDE. 📝
⭐ If DryRun helped you pass, star this repo! ⭐