Coder Social home page Coder Social logo

quiz-manager-1's Introduction

Quiz Manager

Quiz Manager manages quizzes designed to work with the Quiz Manager Moodle Plugin.

Requirements

All the commands that install the prerequisites are found inside the Makefile install rule that can be run with the following command:

make install

Usage

You can run the script using the following command:

python3 src/quiz_manager.py

quiz_manager.py has multiple subcommands. To find out more about each subcommand you can use the --help option.

Question Format

Quiz Manager works with questions in a custom format, named human-readable format, or hr. These questions are to be created and stored in repositories specific to each class / course.

Each question in hr format consists of three parts:

  1. the metadata
  2. the statement
  3. the answers

Consider the sample question below:

created_on:2021-03-09;difficulty:1;topic:boot;
Acronimul BIOS vine de la:
- Brand Input/Output System
+ Basic Input/Output System
- Basic Input/Outstanding Source
- Be Input/Output System

Metadata

The first line in the sample above is the metadata:

created_on:2021-03-09;difficulty:1;topic:boot;

It consists of key-value items defining properties of the question, in the format:

key1:value1;key2:value2;...;keyN:valueN;

If multiple values are assigned for a key, they will be separated by comma.

Possible keys are:

  • created_on (required): question creation date; the format is YYYY-MM-DD (e.g. 2021-03-09 for March 9, 2021).
  • topic (required): chapter / topic for the question
  • tags (optional): keywords for the question content, more fine-grained than the chapter / topic
  • difficulty (required): a numeric value for the question difficulty; a higher number means a more difficult question

The metadata line must end with a semicolon (;).

Topics, tags and difficulty are specific to each class / course that uses Quiz Manager.

Statement

The second line in the sample above is the statement:

Acronimul BIOS vine de la:

The statement is a character string delimited by the metadata line and the first answer line. That is, a statement may be single-line or multi-line (newlines may be part of the statement line). It ends when the first answer starts.

Answers

The last four lines in the sample above are the answers:

- Brand Input/Output System
+ Basic Input/Output System
- Basic Input/Outstanding Source
- Be Input/Output System

Each answer starts with + (plus and blank) for a correct answer or with - (minus and blank) for a wrong answer. The actual answer is a character string following + or - . Answers may be single-line or multi-line. Answers are delimited by the next answer or by an empty line marking the start of the next question.

The number of answers and the number of correct answers are specific to each class / course that uses Quiz Manager.

quiz-manager-1's People

Contributors

costinsin avatar adriangeorge avatar dandrei279 avatar razvanvirtan avatar giorgianav avatar razvand avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.