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.