You are on page 1of 4

Structure enquiry evaluation

Batch: B2

Questions:

Table 1. Questions with question QId


QId Question

a Consider a Digital library where users can register as subscribers. The library holds details of the
publications it owns together with information on its members. There are two kinds of
publication: books and journals. Information held on each book includes: title, author(s), library
catalogue number, no. of copies. Information held on each journal includes: title, volume
number, library catalogue number, no. of copies. The user can view the list of publications and
rent the up to 5 publications for digital viewing up to 10 days. Once a user rents a publication, it
cannot be rented by him/her in later stages. Write a C++ program to list the publications and rent
them. Also, for a publication, list the user who already rented it in past.

b Consider a courier system that sends parcels. Parcels can be of two types Paper Parcel and Box
Parcel. Each parcel can be described by id, sending person name , mobile number, a destination
address, destination Pincode. Additionally, paper parcel has envelop size based on which fee is
calculated and Box parcel has volume based on which fee is calculated. At a courier center , all
the parcels to be sent are classified based on the first three digits of the pincode. Write a
program to simulate the above scenario and display all the parcel with classification.(suitably you
can take pin code of any three districts assuming the first three digits are same within a district)

c Consider a Publication company publishes the work of a university faculty in the form video
lecture and ebook. The video and ebook are publication types. The video is described by unit of
time it can be played and ebook by numberOfPages. Create list of publications to store video and
ebook objects. Display the publication details . Later the price of ebook is dropped by 10% and
then update the price of ebooks in the list, this update has to be implemented by finding the
ebook objects from the list only. The program has to count number of video and ebooks in a list
and print.

d Consider a fitness app that plays the video of exercise for user. There can be two types of videos
live and recorded video. A live video is telecasted by shooting the video of instructor and cannot
be stopped once it begins. A recorded video is prepared by joining the clips of various exercise
postures an user can play/pause it. Write a program to list the live video (that are going on
currently) and recoded videos. The app shall play the any video selected by the user.

e 1. The world suffered from a pandemic situation and our scientists have come up with two types of
vaccines, Alpha and Beta. Govt is planning to vaccinate all the people using these two vaccines.
The user has to take two shots of vaccine and user can be given any vaccine as per the
availability of vaccine( different vaccine can be taken in two shots). If the user takes alpha
vaccine then next vaccine must be taken after one month. But if beta vaccine is given first then ,
next vaccine must be taken after 2 months. Write a program to keep track of vaccines available
and according give vaccine to the persons. Also keep track of persons who have been vaccinated
list their details. List the persons who are yet to take second dosage of vaccines.

f
Student grading system for Standards 1 to 9: Due to COVID-19, final exams for school children
were not conducted. However students have to be graded not only based on previous
performance, but also based on the submission of the assignments during lockdown. For every
student the task is to help teachers to maintain the assignment submissions and award grade for
each subject during the lockdown period. Grading system calculates the average of all the
assignment marks and grades each subject as follows:

Grade Marks range

A 86-100

B 71-85

C 56-70

D 40-55

Assignments may be added or deleted. Each assignment has a maximum marks. Create
appropriate test classes and functionalities to display the grade of a student for all the subjects.
Handle exceptions and test the program for different test cases.

g Consider a Fitness App that list and describes various exercises with details. There are two types
of exercises, home work-out and yoga. Each exercise has a name , id. Home work-out exercise
demo are given by playing a video(simply display the name of the video file being played) and
Yoga exercise demo is given by list of steps in the text. A user can download the app and view all
the exercises and their demo. Then he/she can create a playlist and include some exercises in list.
Write a program to display all list of exercises and playlist of the user.

h Consider a airport that has single lane for take-off and landing of planes. There are two types of
planes passenger and cargo planes. The airport prepares the schedule of each planes and allows
them to fly and land as per the schedule. Each plan will request their timing of landing/takeoff to
airport and airport schedules by sorting the planes as per their landing/ take-off timing requests.
The airport charges each plane for maintenance. Passengers planes are charged as per number of
passengers and cargo planes are charged as per weights of baggages they carry. Write the C++
program to simulate above scenario.

Table 1. Question allotment


QId
RollNum allotted

237 a

238 b

239 c

240 d

241 e

242 f

243 g

244 h

245 a

246 b

247 c

248 d

249 e

250 f

251 g

252 h

253 a

254 b

255 c
256 d

257 e

258 f

259 g

260 h

261 a

262 b

263 c

264 d

265 e

266 f

Table 2. 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