Professional Documents
Culture Documents
C++ Punjabi University Question Paper
C++ Punjabi University Question Paper
C++ Punjabi University Question Paper
of Pages: 7
CC:A4.5 PC 1288-AH
C2043
USINGC+-B
OBJECT ORIENTED PROGRAMMING
[Maximum Marks: 70
Time Allowed: Three Hours]
attempt one question each from
Note- The candidates are required to
SECTION-A
characteristics of Object oriented
1. (a) What are the unique
programming paradigm ? Explain.
7
C++? How is it used in arithmetic calculations ? Discuss.
examples.
(b) What are various logical operators in C++? Mention their syntax
(b)
and usage with a C++ program.
1288-AH-B/4110/APR-46346 [P.T.O
SECTION-B
using recursion.
proper syntax. 7
) Storage class
(i) Union. 1
SECTION-C
from member function ? How can you make one function friend
of many classes ? 7
?
6 (a) What is inheritance? What are various types of inheritance
Describe.
1288-AH-B/4110/APR46346 2
(6) Discuss usage of following:
() Abstract Class
i) Dynamic Constructor.
SECTION-D
function ? Discuss.
8.
8. (a) Discuss syntax and purpose of following functions in context
ofthe operations
seekp)
(i) getline)
7
) put().
How do you open files for reading or writing? What are various
(b)
opening modes ? Discuss.
SECTION-E
9 Explain the following in short:
1288-AH-B/4110/APR46346 3 (PT.O.
What do you mean by function prototype ?
(d)
How do you use new operator ?
(e)
Differentiate between carly binding and late binding.
(UFrait gerE)
2 ia J5|
STO-8
fru fen
caH
m)
P.TO