0% found this document useful (0 votes)
20 views

2022 C++ CIE 2

Study

Uploaded by

Inchara P
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

2022 C++ CIE 2

Study

Uploaded by

Inchara P
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Academic year 2022-2023 (Even Sem)

DEPARTMENT OF INFORMATION SCIENCE AND ENGINEERING

Date Aug 2023 Maximum Marks 50


Course Code 22PL25D Duration 90 Min
Sem II CIE - II
PROGRAMMING LANGUAGE COURSE
(Introduction to C++ Programming)

BT-Blooms Taxonomy, CO-Course Outcomes, M-Marks


Particulars CO1 CO2 CO3 CO4 L1 L2 L3 L4 L5 L6
Marks
Distribution Test Max 14 16 20 -- -- 30 20 -- -- --
Marks

SL No. Test Questions M BT CO


Differentiate between Structures and Unions through their relation with
1.a 4 L2 CO1
classes
Explain the usage of inline functions and friend functions within a class
1.b 6 L2 CO2
through examples.
A class has to be designed with data members and member function to calculate
population density threshold allowed for the area based on availability of physical
resources such as cultivation land and water.
Suppose a new class has to be included which computes the difference in
population density and threshold by taking current population density in an area
2 and provides the excess/scarce in population density of the respective area. 10 L3 CO3
Design the classes in a way, where the class computing the difference in
population density uses the data members and member functions of the class
calculating population density.
Population density threshold = River flow area (sq. km.) / Cultivation land availability (in sq. km.)
Population density = Population / Area (sq. km.)
Explain the different ways of initializing value to constructor accepting
3.a 4 L2 CO2
only one parameter.
Elaborate on the behavior of constructors and destructors with sample
3.b 6 L2 CO1
programs and their output.
Assume two or more classes are derived from a common base class. Can
multiple copies of the base class from being present in an object derived
4. 10 L3 CO3
from these two or more derived classes be prevented? If so, how? Explain
through example.
Explain the usage of Static data members and Static Member functions as
5.a 5 L2 CO2
Static class members
Differentiate between private, public and protected base class access
5.b 5 L2 CO2
control mechanisms.
Academic year 2022-2023 (Even Sem)

***********

You might also like