You are on page 1of 1

Enrollment No:______________

PARUL INSTITUTE OF ENGINEERING & TECHNOLOGY


B.E. 2nd Year IV Semester. (EC) Sub: IE-I (OOCP) Date: 08-Feb-2012 Marks: 30 Time: 11:30 12:30 am
______________________________________________________________________________________________________

Q.1

Explain in brief. (Any Two) (i) Basic Data Types. (ii) Scope Resolution Operator. (iii) Memory Management Operator. (iv) Default Arguments in Functions

(6)

Q.2

Explain Inline Function with Example. OR

(4)

Q.2

Write a program using function with arguments to swap two Integer Numbers.

(4)

Q.3

Explain Function Overloading with Example. OR

(5)

Q.3

Explain fundamental concepts of Object Oriented Programming.

(5)

Q.4

Explain in brief. (Any Two) (i) Copy Constructor with example. (ii) Friend Function with example. (iii) Parameterized Constructor with Example (iv) Multiple Constructor / Constructor Overloading with example.

(10)

Q.5

Write A Program to display largest number by defining member function inside and outside the class and also implement largest function as a nested function in C++. Data Members :: two Integers. Member Functions :: getdata(), display() and largest().

(5)

You might also like