0% found this document useful (0 votes)
20 views3 pages

Questionary Module: Aim of The Module

This module displays questions randomly to registered users attempting a test. It contains an array of pointers to handle 10 questions, an array to store user answers, and an array of correct answers. A Question class has these as private data members and a constructor to initialize the question pointers. Public functions display questions randomly and check user answers against the answer key to pass results to the Result module. Separate classes are made for three subjects: Data Structure, C++, and Python.

Uploaded by

Gurshehzad Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views3 pages

Questionary Module: Aim of The Module

This module displays questions randomly to registered users attempting a test. It contains an array of pointers to handle 10 questions, an array to store user answers, and an array of correct answers. A Question class has these as private data members and a constructor to initialize the question pointers. Public functions display questions randomly and check user answers against the answer key to pass results to the Result module. Separate classes are made for three subjects: Data Structure, C++, and Python.

Uploaded by

Gurshehzad Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

QUESTIONARY MODULE

GURSHEHZAD SINGH
2018CSA1087
Questionary Module is used for displaying questions to the
registered user.
This module starts when the person has registered his/her
required information and has been prepared to be proceeded
forward to the test.

Aim of The Module:-


This Module displays the list of questions to be displayed on the
screen for the candidate to attempt. This list will be displayed
randomly and the answers will be compared with the answer
key side by side using the Result Module.

Prototype of The Module:-


For any of the desired 3 subjects (Data structure, C++ and
Python), 10 questions will appear in random order which are
displayed in the constructors of the respective classes made for
different subjects.
IMPORTANT DECLARATIONS:-
1) An array of pointers named ques is declared for handling
the 10 questions to be asked.
2) An array of pointers named ansent is declared for getting
answers as inputs from user.
3) An array of pointers named ans is declared for storing the
correct answers for each question.
CLASS AND ITS FUNCTIONS:-
A class question is declared which contains above declarations
as private data members, a constructor for initializing data
members containing questions and following functions as
public data members.
CONSTRUCTOR:-
A user defined default constructor named questions is defined
in order to initialize the ques array of pointers with 10 Multiple
Choice questions along with their respective options.
FUNCTIONS:-
1) The Display function is used to display the questions
randomly on the screen.
2) The Check function is used to compare the answer given
by user with the answer key and then further use it in the
result module.
NOTE :- There are three classes made on the above
mentioned parameters which are used for three different
subjects namely Data Structure, C++ and Python.

You might also like