Verified — Pitanja Za Teorijski Ispit

[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");

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) ); pitanja za teorijski ispit

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. [Prethodno] [Sljedeće] [Završi ispit] 6

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 ); name VARCHAR(100) NOT NULL

No track selected
Select a track to play
0:00
0:00