Skip to content

pcordemans/mp-grader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MP Grader

MP Grader is a grader for multiple choice questions.

Questions follow the YAML structure:

---
oplossing:
    vraag: 1
    antwoord: A
...
  • Questions are multiple choice, choosing between 4 possible answers.
  • Answers use a single letter: 'A','B','C','D' or 'X' for a blank answer.
  • Answers default to blank.

All questions can be combined in a single file. Questions can be formatted any way you like:

### Vraag 1

Wat is het antwoord op de vraag van het universum, het leven en alles?

A: 42

B: Microcontrollers

C: Databases

D: Wiskunde

---
oplossing:
    vraag: 1
    antwoord: A
...

Answers are graded by these rules:

  • Correct answer: +1
  • Blank answer: +0
  • Wrong answer: -1/3

Run MP grader

sbt run

Interactive shell:

 __  __ ____     ____               _
|  \/  |  _ \   / ___|_ __ __ _  __| | ___ _ __
| |\/| | |_) | | |  _| '__/ _` |/ _` |/ _ \ '__|
| |  | |  __/  | |_| | | | (_| | (_| |  __/ |
|_|  |_|_|      \____|_|  \__,_|\__,_|\___|_|

What is the path of the Answer Key?
What is the path of the file? (./multiple-choice.md)
Reading: ./multiple-choice.md
Found 30 questions
What is the path of the Student Answers?
What is the path of the file? (./multiple-choice.md)
Reading: .\multiple-choice.md
Found 30 questions
Continue? (y)
20,33/30
Next student? (y)

Installation

Install Scala 3 & SBT

Development

This is a standard sbt project.

Compilation:

sbt compile

Run:

sbt run

Test:

sbt test

For VS Code use the Metals extension.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages