0% found this document useful (0 votes)
7 views3 pages

Computer OOP (5th) Dec2020

Oop notes

Uploaded by

karanjotsinghnsj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views3 pages

Computer OOP (5th) Dec2020

Oop notes

Uploaded by

karanjotsinghnsj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Roll No. ........................

Total Pages : 6
a) Static 4

10738/NH b) Extern 4

C-2110 c) Virtual Function. 4

OBJECT ORIENTED PROGRAMMING 2. Explain the advantages and disadvantages of OOPS

USING C++ over Functional Programming approach. 12

Paper–BAP–301 3. Write short notes on the following.

a) User defined data types 4


Semester–V

b) Manipulators 4
(Syllabus–Dec.-2019)
c) Input Output Statements. 4
Time Allowed : 3 Hours] [Maximum Marks : 60
4. What is Function Prototype? Explain the different
Note : The candidates are required to attempt two
types of argument passing techniques with example.
questions each from Section A & B. Section
12
C is Compulsory.
SECTION—B
SECTION—A
5. What is a Class? How it is created? Write an
1. Write short notes on the following :-
example of class. 12

10738/NH/721/W [P. T. O. 10738/NH/721/W 2


6. What are contructors and destructors? What is PUNJABI VERSION

constructor overloading? Discuss with example.


not : Gkr T ns/ n ftZu'I d'-d' gqFB eo'. Gkr J
12
d/ ;ko/ gqFB bk}wh jB.
7. Discuss in detail different types of inheritance with
Gkr —T
the hlep of suitable examples. 12
1. fBwB T[Zs/ ;zy/g B'N fby'-
8. What the friend function? What are merits and

demerits of friend function? 12 a) Static

SECTION—C b) Extern

9. Define the following :- 6×2=12 c) Virtual Function

a) cin and cout


2. czeFBb gq'rokfwzr gjz[u d/ w[ekpb/ OOPS d/ B\/
b) 'this' pointer
-B[e;kBK dh ftnkfynk eo'.
c) Inline function
3. fBwB T[Zs/ ;zy/g B'N fby' -
d) Abstract class

e) While vs do while loop a) User defined data types

f) Static function. b) Manipulators

10738/NH/721/W 3 10738/NH/721/W 4
c) Input Output Statements 2. ‘this’ pointer

4. czeFB go'N'NkJhg eh j?< T[dkjoD d/ e/ argument 3. Inline cz e FB


passing seBheK dhnK ftfGz B fe;wK dh ftnkfynk
4. Abstract Class
eo' .

Gkr—n 5. While vs do While Loop

5. Class eh j?< fJj fet/I f;oih iKdh j?< ebk; 6. Static cz e FB


dh fJZe T[dkjoD fdU.

6. Constructors ns/ Destructors eh jB< Constructor


Overloading eh j?< T[dkjoD ;fjs uouk eo'.

7. Y[ethnK T[dkjoDK d/ e/ ftok;s dhnK ftfGzB


fe;wK pko/ ft;Eko Bkb uouk eo'.

8. Friend czeFB eh j?< fJ; d/ r[D-n"r[D eh jB<

Gkr—J

9. fBwB dh ftnkfynk eo' L-

1. Cin ns/ Cout

10738/NH/721/W 5 10738/NH/721/W 6

You might also like