Coder Social home page Coder Social logo

mcq-randomizer's Introduction

mcq-randomizer

This program randomizes multiple choice tests to create multiple versions of a test.

It takes in a test and answer key, and produces randomized test with a matching answer key.

You will need python3 to run the program. You can download it for your OS here: https://www.python.org/downloads/

Currently the input files are hardcoded, so you must place them in the same folder as the program and name them input_test.txt and input_answers.txt. This may be more convenient for people using not using this script from the command line. Or you are welcome to modify the program.

Each time you execute the program a new random version is generated.

The generated output files have a unique id postfix, so you can identify the question/answerkey pair.

It has not been generalized yet, so your input test and answers must meet some formating requirements:

  • The input files must be text files.
  • Questions must be identified by a unique number, and the number must be followed by a '.'
  • Choices must be indentified by a letter [a:f, A:F], followed by a '.' Choice identifiers must be unique for that question.
  • Each choice must be on a new line.
  • Your answer key must have the same number of answers as your test.
  • Your answers in your answer key must be one of the choice identifiers in your question.

example question format (question order, spacing and indentation don't matter):

  1. Question text
    a. choice text
    b. choice text
    c. choice text

example answer key (answer order, spaceing, case, indentation don't matter):

  1. A
  2. b
  3. c
  4. B

mcq-randomizer's People

Contributors

gwbischof avatar

Watchers

James Cloos avatar  avatar

mcq-randomizer's Issues

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.