This is a simple quiz application that fetches questions from the Open Trivia Database API based on user-selected topics. It presents the questions to the user and allows them to select their answers. Once the quiz is completed, the user's score is displayed.
To run the quiz app, follow these steps:
- Clone the repository to your local machine.
- Install the required dependencies by running
pip install -r requirements.txt. - Run the
main.pyfile using Python. - Click the "Start" button to begin the quiz.
- Select the desired topic from the dropdown menu.
- Answer the questions presented to you.
- Once you've completed the quiz, your final score will be displayed.
- Fetches questions from the Open Trivia Database API.
- Supports multiple choice questions.
- Displays questions one at a time.
- Randomizes the order of answer choices.
- Tracks the user's score and progress.
- Provides a simple user interface for interacting with the quiz.
- Python 3
- requests library (for API requests)
- Streamlit (for the user interface)
main.py: Main script to run the quiz app.question_model.py: Defines the Question class.quiz_brain.py: Implements the QuizBrain class for quiz logic.quiz_ui.py: Defines the QuizInterface class for the user interface.input_window.py: Implements the InputWindow class for selecting quiz topics.requirements.txt: Lists the required Python libraries.
Description: This screenshot features the category selection screen in the QuizIt Application. Users can choose from a wide range of categories, including General Knowledge, various Entertainment categories (Books, Film, Music, etc.), different Science categories (Nature, Computers, Mathematics, etc.), and more. There is a total of 24 categories listed, and users can click the "Get Value" button to proceed with their selection.
Description: This screenshot displays the questions of a quiz within the QuizIt Application. The user can select an option and click "Next" to proceed to the next question. The interface includes a "Quit" button at the top right corner.
Description: This screenshot shows the feedback provided after answering all the questions in the QuizIt Application and displays a result window showing the user's score.
This project is licensed under the MIT License.


