BOARD DIPLOMA
EXAMINATION, (C-05)
APRIL/MAY 2011
D.C.M.E - IV SEMISTER
EXAMINATION
OOP THROUGH C++
TIME: 3
Hours]
[Total Marks :80]
PART - A
10*4=40
Instruction: (1)
answer all question and each question
carries four marks
(2) answer should be brief and
straight to the point and shall not exeed
five simple sentences
1.
What
is meant by dynamic binding?
2.
Write
the differences between a structure and a class.
3.
What
is operator overloading?
4.
Write
a note on this pointer.
5.
Define
an array and a pointer.
6.
List
the advantages of inheritance.
7.
When
do we make a class virtual?
8.
What
is a file mode? List any two modes.
9.
List
the I/O manipulator functions.
10.
What
is a function template?
PART- B
5*12=60
Instructions: (1) Answer any five questions
and each question carries ten marks. (2) The answers should be comprehensive
and the criteria for valuation is the content but not the length of the answer.
11.
(a)
What is a friend function? Wap in C++ using friend function
8
(b) What is
a desructor ? give
example.
4
12.
(a)Write
a C++ program to illustrate the concept of Dynamic Constructor. 8
(b) What
is an inline functions?
13.
(a)
Write a C++ program which returns an object.
8
(b) List
the operators in C++ which cannot be
overloaded.
4
14.
(a)
Write a C++ program to illustrate the use of array of objects.
8
(b)Write a
note on the dynamic memory operators new and delete.
15.
(a)
Write a C++ program to illustrate the concept of pointer to objects.
8
(b) What is a reference ?
4
16.
(a)
Explain the multiple inheritance with a C++ program.
8
(b) Write a
note on visibility on inherited
members.
4
17.
Write
a note on the
following
12
(i) File stream classes (ii)Pure virtual
function (iii) C++ I/O operators
18. Explain the creation of function based
template.
12
C++ PREVIOUS QUESTION PAPER FOR POLYTECHNIC
C-09 C-05
No comments:
Post a Comment