Za Teorijski Ispit | Pitanja
Below, I’ll outline a for a "Theoretical Exam Questions" module, including functionality, database structure, UI/UX, and logic. 1. Feature Name „Baza pitanja za teorijski ispit“ (Theoretical Exam Question Bank) 2. Core User Stories | ID | User story | |----|-------------| | US1 | As a user, I want to browse questions by category (e.g., traffic rules, first aid, vehicle tech) | | US2 | As a user, I want to take a mock exam with randomly selected questions | | US3 | As a user, I want to see correct/incorrect answers with explanations | | US4 | As a user, I want to track my progress and weakest categories | | US5 | As an admin, I want to CRUD questions, answers, and explanations | 3. Database Schema (PostgreSQL/MySQL example) CREATE TABLE categories ( id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL, description TEXT ); CREATE TABLE questions ( id SERIAL PRIMARY KEY, text TEXT NOT NULL, category_id INT REFERENCES categories(id), difficulty INT CHECK (difficulty BETWEEN 1 AND 5), explanation TEXT, image_url VARCHAR(255) );
If you want, I can now write for any part of this feature (e.g., the mock exam backend + frontend in React + Django, or just a standalone JavaScript exam simulator). Let me know which part you'd like to implement first. pitanja za teorijski ispit
This is a great feature request. "Pitanja za teorijski ispit" (Questions for the theoretical exam) typically refers to driver's license tests, professional certifications, or academic exams. Below, I’ll outline a for a "Theoretical Exam
CREATE TABLE answers ( id SERIAL PRIMARY KEY, question_id INT REFERENCES questions(id) ON DELETE CASCADE, text TEXT NOT NULL, is_correct BOOLEAN DEFAULT FALSE ); Core User Stories | ID | User story
[Prethodno] [Sljedeće] [Završi ispit] 6.1 Automatic explanation on wrong answer function checkAnswer(selectedId, correctId, explanation) if (selectedId !== correctId) showMessage(`Netočno! Točan odgovor je: $correctText`); showExplanation(explanation); markAsWeakCategory(questionCategory); else showMessage("Točno! +1 bod");
( ) Kratka svjetla ( ) Duga svjetla (✓) Maglenke (prednja/stražnja) ( ) Pozicijska svjetla