Preparing for an exam but not sure how to review all the topics? Try this tool!
-
Install Java.
-
Download the
quiz-on-terminal.jar
file from the releases. -
In the same folder as the downloaded file, create a
questions.txt
file. -
Populate the text file with some questions. To format them correctly, read the next paragraph.
-
Open a terminal and write:
java -jar quiz-on-terminal.jar
Create a questions.txt
file with your questions and answers.
It must be formatted this way:
Top Topic
Question
- Answer
+ Answer
- Answer
- Answer
Question
+ Answer
- Answer
- Answer
- When you want to specify a topic for your questions, just put 'Top ' before your questions
- To write an answer to a question, simply write it in a next line with the prefix '- '
- The answer with '+ ' is parsed as the correct answer
- You can write max 26 answers per question
- No blank line is permitted
- Install Java (both JRE and JDK).
- Clone the repository.
- Open a terminal and write
javac Ask.java
. - To run:
java Ask
.