A responsive, client-side examination simulator replicating the rigorous interface mechanics of high-stakes competitive tests.
Engineered with deterministic vanilla JavaScript state management, dynamic DOM reconciliation, countdown timers, randomized assessment pools, and statistical post-exam telemetry.
Standard web assessment tutorials commonly deploy trivial quizzes that disclose answers instantaneously, failing to replicate the cognitive pressure and procedural realities of professional Computer-Based Tests (CBT) such as NIMCET, GATE, and university entrance exams.
Mock Test Simulator bridges this gap by architecting a production-grade, zero-dependency browser examination environment. The engine enforces strict state isolation between the active examination session and the underlying answer keys. Candidates navigate through 30 randomized multi-domain technical questions under active timer constraints, update responses dynamically without premature feedback, and unlock comprehensive graphical score breakdowns and granular question-by-question rationales upon final submission.
Interactive Walkthrough: Live dynamic examination flow, question navigation, timed countdown, and real-time performance analytics.
The simulator employs a unidirectional state architecture implemented without external frontend frameworks, ensuring near-instantaneous load times and deterministic state transitions:
┌────────────────────────────────────────────────────────────────────────────────────────┐
│ MOCK TEST ENGINE RUNTIME │
└────────────────────────────────────────────────────────────────────────────────────────┘
│
▼
┌──────────────┐ ┌─────────────────────────┐ ┌─────────────────────────┐
│ Timer Daemon │ ──► │ Reactive State Machine │ ──► │ Dynamic DOM Renderer │
│ (Auto-Submit)│ │ (Active Index, Answers) │ │ (Clean Question Cards) │
└──────────────┘ └─────────────────────────┘ └─────────────────────────┘
│
User Submission Trigger
│
▼
┌─────────────────────────┐
│ Result Evaluator Engine │
└─────────────────────────┘
│
┌───────────────┴───────────────┐
▼ ▼
┌────────────────────────┐ ┌────────────────────────┐
│ Chart.js Visualizer │ │ Deep Review Terminal │
│ (Score Split Radar/Pie)│ │ (Explanations & Keys) │
└────────────────────────┘ └────────────────────────┘
| Module | Technical Implementation | Practical Candidate Benefit |
|---|---|---|
| Deterministic State Guard | Encapsulated in-memory JS state machine decoupling option selection from correctness verification. | Eliminates prompt leakage; answers cannot be inspected via trivial DOM attributes during the test. |
| Active Countdown Daemon | setInterval asynchronous worker with real-time UI synchronization and automatic hard-cutoff trigger. |
Trains time allocation discipline under realistic test conditions. |
| Bidirectional Navigation | Index-driven dynamic DOM re-rendering preserving candidate state across forward and backward traversals. | Allows strategic question skipping, reviewing, and answering at candidate pace. |
| Graphical Telemetry | Dynamic canvas rendering via Chart.js visualizing aggregate accuracy ratios (Correct vs. Incorrect). | Provides immediate visual feedback on conceptual readiness. |
| Deep Review Terminal | Post-test comparative modal juxtaposing candidate choices against verified solution rationales. | Facilitates targeted error remediation and rapid conceptual reinforcement. |
| Ergonomic UI Modes | CSS variable architecture enabling instantaneous high-contrast Light and Dark mode toggling. | Prevents visual fatigue during prolonged diagnostic testing sessions. |
- Client Runtime: Pure ECMAScript 6+ (Vanilla JS), zero framework overhead
- DOM Engine: Procedural functional rendering via standard Browser Web APIs
- Visual Presentation: Responsive CSS3 Flexbox & Grid architecture with CSS Custom Properties
- Data Visualization: Chart.js v4.x (Canvas-based responsive rendering)
- Asset Footprint: Self-contained single-page application (
index.html,style.css,script.js)
Run the application locally without requiring complex toolchains or package managers:
# Clone the repository
git clone https://github.com/vsbeginner/Mock-Test-Simulator-.git
cd Mock-Test-Simulator-
# Option 1: Open directly in your default browser
start index.html
# Option 2: Serve via lightweight Python local server (recommended)
python -m http.server 8000
# Navigate to: http://localhost:8000- Candidate Name: Vinayak Sharma
- Enrollment / Roll No: 2501940012
- GitHub Profile: @vsbeginner
- LinkedIn Profile: Vinayak Sharma
- Email Contact: [email protected]
- Degree Program: Master of Computer Applications (MCA)
- Institution: Department of Computer Science & Engineering, K.R. Mangalam University