RoILNq.
,_|__ |^_| |__|,_ ,
ANNA UNIVERSITY (UNIVERSITY DEPARTMENTS)
B . E . / B. T e c h / B. Arch (Full Time) - A R R E A R EXAMINATIONS N O V / D E C 2023
B . E . Geoinformatics, S e m e s t e r IV
G15403 - O B J E C T O R I E N T E D P R O G R A M M I N G U S I N G C++
(Regulation 2019)
Time: Shrs [Link]: 100
CO 1 U n d e r s t a n d t h e b a s i c c o n c e p t s of O b j e c t o r i e n t e d programming
CO 2 I m p l e m e n t O O P S concept u s i n g C++ L a n g u a g e
CO 3 U n d e r s t a n d t h e c o n c e p t of I n h e r i t a n c e a n d P o l y m o r p h i s m
CO 4 Handle the I/O files
CO 5 Effectively u s e template a n d exception handling
B L - B oom's Taxonomy Levels
( L l - Remembering, L 2 - Understanding, L 3 - Applying, L 4 - Analysing, L 5 - Evaluating,L 6 -
Creating)
P A R T - A (10 X 2 = 2 0 Marks)
(Answer all Questions)
Q. No Questions Marks CO BL
E x p l a i n how Polymorphism is a c h i e v e d at compile time. 2 1 Ll
1
1 L2
2 I n f e r 'object i d e n t i f y ' a n d 'object modeling'. 2
W h a t a r e 'Ke5rwords' a n d I d e n t i f i e r s ' i n C++? 2 2 Ll
3
2 L2
4 S u m m a r i z e about 'manipulators'and'control statements'. 2
Describe 'member functions'. 2 3 Ll
5
3 L2
6 Outline the different visibility m o d e s supported by C++. 2
Explain the input a n d output s t r e a m s i n C++. 2 4 L2
7
D e m o n s t r a t e a C + + p r o g r a m to c o u n t t h e n u m b e r of w o r d s 4 L2
8 2
i n a text file.
" A s t a t i c m e m b e r f u n c t i o n i s s i m i l a r to a f r i e n d f u n c t i o n " - 5 Ll
9 2
Describe and Comment.
S i m i m a r i z e the relation between the m e m b e r function and 5 L2
10 2
the class.
P A R T - B (5 X 13 = 6 5 M a r k s )
Q. No Questions Marks CO B L
Elaborate i n detail the various steps involved i n Object
1 1 ( a ) (i) 8
Oriented Design.
1 L6
Compile about A D O D a t a Control a n d D a t a B o u n d Contrd
(ii) 5
in accessingdatabases.
OR
Elaborate on how d a t a a n d functions are s h a r e d i n Object
1 1 (b) ( i ) 8 1 L6
Oriented Programming a n d list the c h a r a c t e r i s t i c s .
Construct a routine to explain the inheritance and
(ii) 5
polymorphism.
Compare the different d a t a t j ^ s u s e d i n C++ a n d explain
1 2 ( a ) (i) 8
their application. 2 L5
(ii) Interpret a n d explain the manipulators u s e d i n C++. 5
OR
Evaluate using C++ program with a function using
1 2 (b) (i) r e f e r e n c e v a r i a b l e s a s a r g u m e n t s t o s w a p t h e v a l u e s of a 8
p a i r of i n t e g e r s .
2 LS
E^valuate u s i n g a C++ p r o g r a m u s i n g f u n c t i o n overloading
(ii) t o e s t i m a t e t h e v o l u m e o f a c u b e (s3), c y l i n d e r ( 3 . 1 4 5 1 9 r 2 h ) 5
a n d r e c t a n g u l a r box (Ibh).
C o m p a r e a n d e x p l a i n t h e v a r i o u s t y p e s of I n h e r i t a n c e w i t h
1 3 ( a ) (i) 8
an example. 3 L4
(ii) I n f e r i n h e r i t a n c e a s a p p l i e d to o b j e c t - o r i e n t e d programs. 5
OR
I n f e r t h e d e r i v e d c l a s s e s a n d m a k e a p r o g r a m to e x p l a i n its
1 3 (b) (i) 8
application in R S datasets.
3 L4
A n a l y s e u s i n g a C + + p r o g r a m to d e m o n s t r a t e Constructor
(ii) 5
and Destructor concepts.
Compile a n d d i s c u s s about A N S I string c l a s s , its member
1 4 ( a ) (i) 13 4 L3
functions, non-member functions a n d operators
OR
Compile and discuss in detail about C++ Namespaces
1 4 (b) (i) 13 4 L3
including S T D Namespace.
Simplify Exception Handling in C++. Elxplain w i t h Try,
1 5 (a) (i) 13 5 L4
Catch, and Throw examples.
OR
A n a l y s e w h e n function templates are u s e d . E x a m i n e how
the quicksort algorithm is implemented with a function
1 5 (b) (i) 13 5 L4
template and also infer about overloading function
templates.
PART- C (1 X 15 = I S Marks)
([Link]. 16 i s compulsory)
Q. No Questions Marks CO BL
W h a t do y o u m e a n by o v e r l o a d i n g of a f u n c t i o n a n d w h e n
16. (i) 7 2 L3
do w e a p p l y t h i s c o n c e p t ?
I n f e r w i t h e x a m p l e s for ' C a U b y V a l u e ' a n d ' C a l l b y R e f e r e n c e '
8 2 L4
(ii) i n C++.