Guru Nanak Dev University 2009 B.Sc Information Technology Programming in c++ - Question Paper
Tuesday, 22 January 2013 05:50Web
B.sc(it) part-2nd
object oriented programming using c++
paper 4th
1) a) describe the concept of abstraction, encapsulation and inheritence with examples.
b) elaborate the different operators available in c++ ? discuss giving suitable examples.
2) discuss with suitable examples the different kinds of loops availabe in c++.
3) describe constructors.what are the different kinds of constructors ? discuss giving examples.
4) discuss, with the help of suitable examples, the subsequent concepts:
a) function averloading
b) function reddefining
c) function overriding
5) write a program for creating an array of students structures consisting of rno, name, marks in three subjects and total marks, after studying the values of n studentds. calculates total marks of every students and avg. marks of students per subjects.
6) explin the different methods of derivation used in inheritence. discuss how a publicly deribed class can across private data of a base class ? discuss the merits and demerits of private derivation over the public derivation.
7) discuss the different functions involved in opening end closing a binary file in c++. how an array of class objects can be stored and retrived from a file ?
8) write short notes on the following:-
a) incline functions
b) disadvantages of operators overloading
c) commands line arguments
d) pointer to pointers.
Earning: Approval pending. |