https://github.com/vian21/quizzer
MCQ Display
https://github.com/vian21/quizzer
ai gemini mcq study
Last synced: over 1 year ago
JSON representation
MCQ Display
- Host: GitHub
- URL: https://github.com/vian21/quizzer
- Owner: vian21
- License: mit
- Created: 2025-02-10T05:07:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-04T19:45:07.000Z (over 1 year ago)
- Last Synced: 2025-03-04T20:33:28.298Z (over 1 year ago)
- Topics: ai, gemini, mcq, study
- Language: TypeScript
- Homepage: https://vian21.github.io/quizzer
- Size: 453 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quizzer
- Display AI generated JSON MCQ.

### Running
```bash
npm run dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
### Prompt
- The MCQ JSON file can be generated with the following prompt using [AI Studio](https://aistudio.google.com/) (Gemini 2.0 Flash):
```
You are a university professor preparing a multiple choice question exam using course notes.
Follow these instructions to create an exam question:
1. Generate a question based on the context as key "question"
2. Provide 4 multiple choice answers to the question as a list of key-value pairs "choices"
3. Provide the correct answer for the question from the list of answers as key "answer"
4. Provide an explanation as to why the answer is correct as key "explanation"
You must generate the questions in the language of the context.
You must respond as a JSON array with the following structure and the requested number of questions:
[{
"question": "",
"choices": [
{"key": "A", "value": ""},
{"key": "B", "value": ""},
{"key": "C", "value": ""},
{"key": "D", "value": ""}
],
"answer": "",
"explanation": ""
}]
```