A tool that converts your typical CSE 232 sample example exams into web-based Q/A format.
Allow students to have an efficient and better MCQ practice for CSE 232. Users or students would need to input the questions pdf and the answer key pdf in the respective input fields. This generates the questions with options. All the questions are formatted using MD (Markdown).
video-demo.mp4
- Clone the repo
- /src/ contains the test code for the string REGEX checks
- /docs/ contains all the web contents, and lexer/parser
- pdf.js v1.10.100 is used for PDF rendering
- Retrieve the PDF data buffer data from the URL provided by the user
- Use pdf.js to render the PDF
- Each page that is rendered and checked for a RegEx
- If the RegEx is matched, then it is tokenized into their respective place (questions or options)
- After tokenization, it will be compiled into a JSObject with the type
{questions: string, options: string[]}
- This JSObject data is used to render each question and the options onto the webpage
- Retrieve the PDF data buffer data from the URL provided by the user
- Use pdf.js to render the PDF
- Each page that is rendered and checked for RegExs
- Checks for the sample exam title RegEx
- Each answer RegEx match is mapped to their respective questions; this is the answer for each question
- This is compiled into a JSObject with the type
{[string]: string}
- This JSObject is used to render the correct answer onto the webpage