Program: Diploma In Computer Engineering/ Diploma In IT Engineering
Year/Part: I/II (2008, 2013, 2016)
Full Marks: 80
Pass Marks: 32
Subject: Object Oriented Programming in C++
Time: 3 hrs.
Candidates are required to give their answers in their own words as far as practicable. The figures in the margin indicate full marks.
Attempt any EIGHT questions.
1. What is object oriented program? Explain the elements of object oriented programming in brief. [4+6]
2. What is variable? How are variables declared and initialized in C++? Explain with suitable example. [3+7]
3. What is object and class? Explain with an example. [5+5]
4. Describe the term friend function. Write a simple program to demonstrate friend function. [4+6]
5. What is polymorphism? Explain the operator overloading with simple example. [4+6]
6. What is base and derived class? Write a simple program to demonstrate inheritance. [4+6]
7. Explain/file I/O stream Write a program to create a file named CTEVT.txt. Write text "Welcome to CTEVT" to this file. [6+4]
8. What is templets? Explain about the function template. [5+5]
9. Write shorts notes on: (Any TWO) [2×5]
a. Constructor and Destructor
b. Function Overloading
c. Inline Function
Good Luck