This is a simple command-line tool for generating question papers based on difficulty levels and total marks. It uses Node.js and readline-sync for user input.
-
Clone the repository:
git clone https://github.com/your-username/question-paper-generator.git cd question-paper-generator
-
Install dependencies:
npm install
-
Run the application:
node index.js
-
Follow the prompts to enter the percentage for each difficulty level (Easy, Moderate, Difficult) and the total marks required.
-
The tool will generate a question paper based on the provided criteria, displaying questions and their respective marks.
-
index.js
: Entry point for the application. It imports thegenerateQuestionPaper
function from thequestionPprGenerator.js
file and runs it. -
utils/questionPprGenerator.js
: Contains the main logic for filtering and generating question papers. It uses thereadline-sync
library for user input and imports thequestions
module for the question data. -
Models/Question.js
: Module containing the question data. Ensure that your questions are structured appropriately in this file.
Feel free to customize the application according to your needs. You can modify the question data in Question.js
or adjust the filtering logic in questionPprGenerator.js
.
If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.