This is a small CLI program which will ask you some questions. It is supposed to be an exercise in OOP
Used AI for generating some questions
This is a small CLI program which will ask you some questions. It is supposed to be an exercise in OOP
Used AI for generating some questions
I fixed the usability issues, to make the process much more intuitive (i think at least that it’s better).
Also I added some requested features, like question numbers and an overview at the end of the quiz, which answers the user got correct and which ones they got wrong.
Log in to leave a comment
I built a Quiz Application. Nothing really fancy, but I just wanted to learn a few things.
I am very proud of the working file IO.
Because i thought a bit of file IO practice would be great, I made a custom format. It’s easy to read (text file basically) and easy to write some questions (also because of text).
I implemented the whole thing using console arguments (save, load, printload, …), but they are all described in the help command.
Because of the new format i dropped direct support for JSON-files, but I did made an option to load a JSON file and save it directly to the new format.
Log in to leave a comment
After some work I am finally finished with the questions itself. I have made single choice as well as multi choice questions, true/false questions and finally a question from a TV series, where you get 4 hints but 1 is wrong.
Also I changed the hard-coded questions to loading them from a JSON-File.
The attachments show the default JSON-file and the program.
Log in to leave a comment
I implemented the first kind of question, a true or false question! It works just fine and also has a “print mode” to print out the correct results.
Log in to leave a comment