An open API service indexing awesome lists of open source software.

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

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": ""
}]
```