Skip to content

Creates a Latex File that can be used to generate a question bank for educational purposes.

Notifications You must be signed in to change notification settings

dhruva4869/QuestionBank

Repository files navigation

QuestionBank

Creates a Latex File that can be used to generate a question bank for educational purposes.

HOW TO USE:

  1. Make sure you have dune setup for OCaml since this is done in dune after all.
  2. First you can download the entire repository in your local device. For Windows users, make sure to open it in Linux. (Either virtual machine or in VS-Code via Ubuntu)
  3. Although the Sqlite3 module will already be in the dune package, in case of any error, make sure you have it installed already. The end result should be as provided in the code,

./bin/dune

 (public_name practice)
 (name main)
 (libraries  sqlite3))

as " (libraries sqlite3))"

  1. You can delete the .tex files and question_bank.db and start fresh. Keeping it won't do any harm either, it contains the examples I used while building, for test purposes.
  2. First off we start by going into the current directory as in cd "DIRECTORY_NAME"
  3. Then we follow this procedure

dune build

(For building the dune application)

ADDING QUESTIONS-ANSWERS WITH TOPIC NAME IN DATABASE:

dune exec ./bin/main.exe -- -t "TOPIC_NAME" -q "COMMA SEPARATED QUES IDS" -a "ANSWERS FOR RESP. QUES"

Sample usage: (For creating questions 1,2 for the topic OS):

dune exec ./bin/main.exe -- -t OS -q 1,2 -a 1,2

CREATING A LATEX FILE THAT CAN INCLUDE/EXCLUDE ANSWERS

dune exec ./bin/main.exe -- -gen "LATEX_FILE.tex" -t "TOPIC_NAME" -q "COMMA SEPARATED QUES IDS" -include

-include includes answers in Latex File. IF we DO NOT WANT ANSWERS, in out question bank, we can simply remove include tag

dune exec ./bin/main.exe -- -gen "LATEX_FILE.tex" -t "TOPIC_NAME" -q "COMMA SEPARATED QUES IDS"

Sample usage: (For creating a latex file named "OS3.tex" including questions (and answers) for the Topic Name OS): Note that, the topic name must actually contain the respective questions in the question bank.

dune exec ./bin/main.exe -- -gen OS3.tex -t OS -q 1,2 -include

dune exec ./bin/main.exe -- -gen OS3.tex -t OS -q 1,2

Image Illustrating:

sample

How the Output looks: (After adding beginning and ending tags in Latex)

op

That marks the end of usage for this program. Hopefully this helped.

About

Creates a Latex File that can be used to generate a question bank for educational purposes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages