You are on page 1of 4

Structure enquiry evaluation

Batch: B1

Instruction for students:

I. Each student has to answer one allotted question. The questions are given in below Table 1. The
question allotted to each student can be found in Table 2. Student needs to answer the question
with allotted QId mentioned in the Table 2, column with heading “QId allotted” and row with roll
number.
II. At the start of your answer, you need to type Roll Num, Name, lab batch Num, SRN.
III. Exams are conducted to get you placed during campus selection and to make able person do
well in your professional career. Cheating will defeat that purpose. If two or more student’s
codes are found to be similar, then it will be considered as malpractice.
IV. You can also help me in stopping the malpractice. If anyone is posting the answers in group or
sharing it anywhere, then you can take the snapshot and send it to me separately. Whoever
helps in this regards, their identity will not be revealed and it will be kept secret.

Questions:

Table 1. Questions with question QId


QId Question

a Consider a Customer and the shop classifies customer as regular customer and privileged
customer. The shop offers discount of 5% on every purchase by a regular customer and it issues a
membership card to a privileged customer and offer will be always better than regular customer.
The shop maintains the history of all bills along with customer information. At the end of the day,
shop shall display all the bills and compute the total amount of discount given and total amount
of purchase by all the customers together.

b Consider a fee collection app for a university through which student can pay the fees. Student
can pay either the yearly admission-tuition fee and exam fee(for few registered courses). The
university keeps track of all the students and status of fee paid by them. The app can accept fee
from the students (no login required) and also display the list of students who are yet to pay the
fee under admission-tuition and exam fee separately. Use runtime polymorphism and write c++
program.

c
Consider a simple app which displays the live sports match scores conducted in local
tournament. It can mainly display cricket and football summary live scores. The scores of match
can be updated at any time and same will be reflected whenever the app displays the score. The
app shall maintain the scores of several tournament matches and display it. Also you can serach
for tournament name and display its matches scores. Write a C++ program to simulate the above
scenario.

d Consider a Circus company which plays many Acts. There are two types of Acts one performed by
the humans other performed by animals. Each Act can be performed by single or group of
actors. The company prepares the schedule of acts where acts are performed one after another.
Write a program to create complete Circus company. Then the company should prepare its
schedule and perform the acts as per schedule.

e Consider a simple online Masterchef challenge app. In this app, the user can see a few dishes to
be prepared and the user can test his/her knowledge about a dish by taking a test. There can be
two types of dishes Eatables and Juice. Both will have list of ingredients. Eatables will also have
the order of the ingredients to be used while preparing the dish. But Drink dish will maintain only
the quantity of each ingredient to be used while preparing the dish. Each of these types of dishes
can accept the details of ingredients from user and check if it is correct.

The app should display the total list of ingredients used in all the dishes and ask user to select a
dish to test his/her knowledge. Upon selecting the dish, user must be prompted to enter details
of ingredients that will be checked against the selected dish and display the result as pass or fail.
Write a program to simulate the above scenario.

f A book shop maintains the inventory of books that are being sold at the shop. Whenever a
Table 2. Question allotment
QId
RollNum allotted
201 a
202 b
203 c
204 d
205 e
206 f
207 g
208 h
209 a
210 b
211 c
212 d
213 e
214 f
215 g
216 h
217 a
218 b
219 c
220 d
221 e
222 f
223 g
224 h
225 a
226 b
227 c
228 d
229 e
230 f
231 g
232 h
233 a
234 b
235 c
236 d

Table 3. Parameters for evaluations


Parameter Marks Expectations

Classes and 9
● 2-3 Classes should be identified with required relationship (IS and
relationships
HAS).

● Class Members, parameterized constructors should be identified.

● Methods with required signature should be identified.

● Exception Handling should identified if mentioned in question.

Code and syntax 6


● Syntax mismatch should minimum.

● Parameterized Constructors should be included with proper


initialization code for members of class.

● Methods with business logic should be written.

● Main method to demonstrate objects and their constructor,


methods usage should be written.

● If required, arrays, pointers, polymorphism should used.

You might also like