How To Exam?

a knowledge trading engine...


Maharashtra State Board of Technical Education 2011-3rd Sem Diploma Computer Engineering for in GroupSubject :- -Object oriented Programming(12063) - Question Paper

Sunday, 05 May 2013 06:15Web


MSBTE ques. paper for Diploma in Computer Engineering Group
Third Semester
Subject :- -Object oriented Programming(12063)













21011

3 Hours/100 Marks

Scat No.

12063


Instructions : (1) All questions are compulsory.

(2)    Illustrate your answers with neat sketches wherever necessary.

(3)    Figures to the right indicate full marks.

(4)    Assume suitable data, if necessary.

Marks

I. Attempt any ten of the following :    20

a)    List any two features of procedure oriented programming.

b)    State any four object oriented programming languages.

c)    List any two properties of static member function.

d)    State the difference between private and public access specifiers.

e)    List ihe types of constructors used in C++.

f)    (live any two rules for operator overloading.

g)    What is constructor ? Give syntax to declare constructor.

h)    What is pointer ? State two operators used with pointer.

i)    What is multiple inheritance ? Draw a diagram with classes to show multiple inheritance.

j) Define polymorphism ? State its types.

k) How many destructors can be there in one program for one class ? Ciive reason for the answer.

1) (Jive syntax for defining a class.



Marks

12063

-2-

lllllllllllllllllllllllllllllllll


Attempt any four of the following :    16

a)    With program, explain single inheritance.

b)    Explain the concept of overloaded constructors in a class with example.

c)    Debug following program and write errors if any : Also explain the error.

#    include <iostream.h>

#    include <conio.h> int add (int. float):

int add (int, int, int); add (int x, int y)

{

return (x + y);

}

int add (x. y, z)

{

return (x + y + z)

}

void main ( )

{

cout An" add (1,4); cout "\n" add (2, 4, 8); getch ( ):

}

d)    Write a program using function overloading to swap two integer and swap two float numbers.

e)    Write a program to search a number from an array using pointer to array.

f)    What is function overriding ? (jive one example.



12063

Marks

16

3. Attempt any four of the following :

a)    Differentiate between call by value and call by reference methods for calling function.

b)    Write a program to declare a class box' having data members height, width and breadth. Accept this information for one object using pointer to that object. Display area and volume of that box.

c)    Explain static binding with suitable example.

d)    Define a class student with members as roll-no, name and course. Write a program using constructor with default value as computer engineering for course. Accept this data for two objects of class and display the data.

e)    Differentiate between constructor and destructor.

f)    Create class shape. Derive two classes triangle and rectangle. Accept dimensions of triangle and rectangle with appropriate functions. Make area ( ) function virtual which is common to all classes. With area function calculate area of triangle and rectangle. Display the result.

4. Attempt any four of the following :    16

a)    Write a program to declare a class Employee having data members as emp-id. designation, salary. Accept and display data for one object.

b)    Write a program to overload + operator to concatenate two strings, e.g.

c)    Explain with example why virtual base class is required in inheritance.

d)    What is abstract class ? Give one example for abstract class.

e)    Explain how memory is allocated to object of a class, (jive one example.

f)    Write a program to declare a class distance having data members distl, dist 2 and dist 3. Initialize the two data members using constructor and store their addition in third data member using function and display the addition.




12063

5. Attempt any two of the following :

Marks

16

a)    Write a program to declare a class named Employee having data members Empld, EmpName EmpPost, Salary [ ]: Accept the data for 5 employee and display names of employee, there empld and post using display function and also use salary function to display salary of an employee with requested empld. For accepting data of employee use function Store EMP (Empld, EmpName, EmpPost, Salary).

b)    Write a program to find whether the string is palindrom using pointer to siring. Display appropriate message.

c)    Write a program to accept source file name and destination file name from user and copy the contents of source file into destination file. Also display contents of destination file.

6. Attempt any four of the following :    16

a)    Why friend function is required ? Also give four characteristics of friend function.

b)    Explain syntax of open function to open a file with various opening modes.

c)    With a program explain get ( ) and put ( ) functions used for file handling.

d)    State and explain any four manipulators to format input/output.

e)    What is virtual function ? Explain its importance with example.

f)    Differentiate between structure and class.









Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Maharashtra State Board of Technical Education 2011-3rd Sem Diploma Computer Engineering for in GroupSubject :- -Object oriented Programming(12063) - Question Paper