Jump to Year/Set
2016 051301

B.Tech 3rd Semester Examination, 2016

Time 3 hours
Full Marks 70
Instructions:
  • There are Nine Questions in this Paper.
  • Attempt Five questions in all.
  • Question No. 1 is Compulsory.
  • The marks are indicated in the right hand margin.

Questions

Q1

Explain briefly about the following terms (any seven):

a)

Overloading

b)

Overriding

c)

C++ STL

d)

Constructor

e)

Destructor

f)

Inheritance

g)

Encapsulation

h)

Templates

i)

Protected variable

j)

Private function

[14 Marks]
Q2

Write a C++ program to overload '-' operator to calculate age from date of birth and current date.

[14 Marks]
Q3

Answer the following:

a)

What is a friend function and what are its advantages?

[7 Marks]
b)

What are the guidelines that should be followed while using friend function?

[7 Marks]
[14 Marks]
Q4

Compare overloading and overriding of function with example.

[14 Marks]
Q5

What is exception handling? Write a C++ program to demonstrate the 'try', 'catch' and 'throw' keywords?

[14 Marks]
Q6

Define C++ classes to represent the information of an ORGANISATION having EMPLOYEES and CLIENTS. Provide subclasses MANAGER, CLERK and SUPPORT_STAFF. In this organisation employees work on projects requested by clients.

[14 Marks]
Q7

Answer the following:

a)

What is virtual function? Explain with an example.

[7 Marks]
b)

Explain the abstract class with an example.

[7 Marks]
[14 Marks]
Q8

Explain inline functions with an example program. What are the conditions, where inline functions cannot be expanded?

[14 Marks]
Q9

Answer the following:

a)

What is the difference between compile time and run time errors? What is the use of stack unwinding in exception handling?

[7 Marks]
b)

Discuss void, this and const pointers.

[7 Marks]
[14 Marks]

Install on iOS

To install BEU Connect on your iPhone:

1. Tap the Share button at the bottom of Safari.
2. Scroll down and tap "Add to Home Screen".