Welcome to the MCQ Quiz Repository! This repository is designed to store multiple-choice questions (MCQs) across various subjects and to facilitate quizzes for educational purposes.
- About
- Subjects
- Getting Started
- Repository Structure
- Adding MCQs
- Notes on Formatting
- Running the Quiz
- Quiz Script
- Customizing the Quiz
- Contributing
- License
This repository is dedicated to collecting and organizing MCQs for various subjects. It aims to help users in their preparation and understanding of different topics.
Currently, the repository contains MCQs for the following subjects:
- FCN
- Networking
- Security
- (Add more subjects as needed)
To get started with the repository, clone it using the following command:
git clone https://github.com/yourusername/mcq-quiz-repo.git
MCQ_Quiz_Repo/ │ ├── FCN_mcqs.md # Markdown file containing MCQs for FCN ├── Networking_mcqs.md # Markdown file containing MCQs for Networking ├── Security_mcqs.md # Markdown file containing MCQs for Security │ └── quiz_script.py # Python script to run the quiz
- Create a new markdown file for each subject (e.g., FCN_mcqs.md).
- Format your questions as follows: 1. Question text? * a) Option A b) Option B c) Option C d) Option D Correct answer b) Option B
- Ensure that each question is followed by its options and the correct answer in the specified format.
- You can have any number of options (e.g., 4, 5, or more) for each question by adjusting the formatting accordingly.
-
Open Command Prompt (or terminal).
-
Navigate to the repository directory:
cd path/to/your/MCQ_Quiz_Repo
-
Run the quiz script:
python quiz_script.py
-
Follow the prompts to select a subject and answer the questions.
The quiz_script.py script randomly selects questions from the markdown files and quizzes you. It provides feedback on whether your answers are correct and reveals the correct answer if you select an incorrect option.
You can easily customize the quiz script:
- Add new subjects: Create new markdown files with the same formatting.
- Change question count: The script randomly selects a set number of questions from each subject.