Skip to content

This is a simple CLI MCQ Quiz application made using C++

License

Notifications You must be signed in to change notification settings

imsamroy/quiz-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quiz-application

GitHub license GitHub issues GitHub stars GitHub forks

This is a simple CLI MCQ Quiz application made using C++.

This CLI application even allows you to add your own set of questions via the attached JSON file in a particular order. (Instructions are provided below on how to do it- https://github.com/imsamroy/quiz-application#how-to-add-your-own-questions-through-the-json-file)

Running on GNU/Linux distributions

GitHub release

NOTE: Before running the executable, right click the file and go to properties then permissions and make sure it is allowed to run as program

Running the game on Windows

GitHub release

NOTE: If you get a message like: "Windows Protected your PC" then ignore it and click "More info" then click the Run anyway option (Any exe not recognised by the Microsoft database gets that message even if it is not suspicious, you can search about it online if you want to)

How to add your own questions through the JSON file

The qData.json file will look like this-

image

This order needs to be maintained for the application to work properly. Basically the 3 lines in yellow represent the data of 3 questions, the first element "Who created the Linux Kernel?" is the text of the question. The next one "Elon Musk" represents text of Option A, "Bill Gates" text of Option B, "Linus Torvalds" text of Option C. Then finally the last element "C" represents the answer of the question i.e. Option C. Please put the commas accordingly after each element and if there is another question then after the last element you need to put a comma again like there is comma after "C" because there is another question after it. Also, all the data of the questions need to be inside the "[ ]" brackets. And you need to specify the number of questions you added in the "number of questions" place where by default 3 is given. So another example of 4 questions would be-

image

About

This is a simple CLI MCQ Quiz application made using C++

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages