This Terminal Quiz Application is a Python-based tool designed to facilitate interactive quizzes directly within your terminal. It allows users to take quizzes, review past tests, analyze test results, and focus on questions with a low correct rate. The application is highly customizable, enabling users to set various parameters such as the number of questions, time limits, and pass criteria for each quiz.
- Take a New Test: Start a new quiz with customizable settings such as the number of questions, time limit, and pass criteria.
- Retake an Old Test: Review and retake previously taken quizzes.
- Test Result Statistics: Analyze your performance with detailed statistics on past quizzes.
- Take a Test from Questions with Low Correct Rate: Focus on improving your knowledge by taking quizzes consisting of questions with a low correct rate.
To run this application, you need to have Python 3 installed on your system. Follow these steps to get started:
-
Clone the repository:
git clone https://github.com/onmeyy/terminal-quiz.git
-
Navigate to the project directory:
cd terminal-quiz
Run the application by executing the following command in your terminal:
python app.py
Questions are stored in the data.json
file. Each question follows the format below:
{
"description": "Google Cloud Platform resources are managed hierarchically using organization, folders, and projects. When Cloud Identity and Access Management (IAM) policies exist at these different levels, what is the effective policy at a particular node of the hierarchy?",
"answers": [
{
"value": "The effective policy is determined only by the policy set at the node",
"correct": false
},
{
"value": "The effective policy is the policy set at the node and restricted by the policies of its ancestors",
"correct": false
},
{
"value": "The effective policy is the union of the policy set at the node and policies inherited from its ancestors",
"correct": true
},
{
"value": "The effective policy is the intersection of the policy set at the node and policies inherited from its ancestors",
"correct": false
}
]
}
The data.json
file contains an array of such questions:
[
{
"description": "Google Cloud Platform resources are managed hierarchically using organization, folders, and projects. When Cloud Identity and Access Management (IAM) policies exist at these different levels, what is the effective policy at a particular node of the hierarchy?",
"answers": [
{
"value": "The effective policy is determined only by the policy set at the node",
"correct": false
},
{
"value": "The effective policy is the policy set at the node and restricted by the policies of its ancestors",
"correct": false
},
{
"value": "The effective policy is the union of the policy set at the node and policies inherited from its ancestors",
"correct": true
},
{
"value": "The effective policy is the intersection of the policy set at the node and policies inherited from its ancestors",
"correct": false
}
]
}
]
Contributions are welcome! Please feel free to submit a pull request or open an issue if you have any suggestions or find any bugs.
This project is licensed under the MIT License