This post has extracted part from my free eBook “Simple Quiz Game Design In C++”, and the download link is at below. The video tutorial showing how to design simple quiz game in c++ is also available for reader at youtube [link is below].
A quiz is a form of game or mind sport, in which the players (as individuals or in teams) attempt to answer questions correctly. ... In some countries, a quiz is also a brief assessment used in education and similar fields to measure growth in knowledge, abilities, and/or skills.
Purpose of quiz [in academic scenario]?
A quiz can function throughout a course as an informative feedback device allowing both the instructor and the students to see where they are excelling or need more focus. In order to effectively create exams and quizzes, it is important to establish and understand the learning objectives that are being measured.
quiz are used for entertainment, to teach the certain subject or process to test skill or knowledge, mental assessment, to provide grade or distinguish from one another etc.
Question Types in quiz are [as follows]:
· True/False or Yes/No.
· Multiple Choice.
· Ordering.
· Short Answer/Essay Question.
· Fill-in-the-blank.
· Matching.
Artifacts of any quiz are:
markings whether it is only positive marking or also negative marking for analysis, allow player to skip questions, increasing difficulty level as player progresses, time-constraint game, randomizing same set of questions for set of students etc.
Coding Instructions
Any software program is made of three layers: User Interface, Business Logic and Resources/database files. The quiz games are not exceptions.
Note that above all features can be added to any simple quiz program written in any programming language. The C++ language provides all facility and element to design such real-life working quiz prototype.
This eBook presents selected thirteen codes with different kind of approach, and they teach something different to reader. All codes are tested on Code::Blocks IDE 17.12 + Mingw setup in Windows 7 operating system. The cygwin tool can also be used, but with little code modification, such as commenting getch() and #include <conio.h> lines.
Since the codes are called as simple, no heavy graphics, data validation, security features [such as login password, game setup password, showing only one question per screen, randomizing questions/options etc] and documentation are implemented. All codes are text based or console based programs. Programmer can study them, modify them as he wishes or rewrite as per his needs and add as-many features as he wants.
The Appendix contains some different type of quiz questions files. Programmer or user can copy paste them on any text file and use it with their code. Note that they need correct answer marking, and be done at programmer end only. User can use search and replace feature to modify the data base files.
Note that simple text editor must be used to copy n paste the data/code while programming. Just copy-n-paste the code from this eBook and build the code for executable file. If data file is required, programmer has to generate such file using IDE or simple text editor in the code-indicated format only.
The free eBook link:
The You Tube Tutorial link:
Happy coding!