Coders Packet

Quiz Application in C++

By Priyadarshini Gopal

Application to create, list, take and delete quizzes using Vector Standard Template Library (STL) in C++

The application provides the following options using class and functions:

1. Create a quiz:

    Enter the name of the quiz and the number of questions.

    Enter every question and its corresponding answer.

    The quizes are stored in the form of array of vectors of string datatype.

    The application can store a maximum of 5 quizzes at a time.

2. List existing quizzes:

    All the available quizzes are displayed.

3. Take a quiz:

    All the available quizzes are displayed.

    Enter the number of the quiz you want to take.

    Enter all the answers to the questions.

    After the quiz is completed, the score and score percentage are displayed.

4. Delete a quiz:

    All the available quizzes are displayed.

    Enter the number of the quiz to be deleted.

The application handles exceptions like invalid option by showing an error message to the user.

It uses vector STL to store and retrieve the quizzes.

Download Complete Code

Comments

No comments yet