How To Exam?

a knowledge trading engine...


University of Mumbai 2007-2nd Sem B.E FE Computer Programming II - exam paper

Sunday, 14 July 2013 03:05Web



F- <* Cs rn 'H ") (All 8t) Cbmp t-jcte/v pTTocjra m m* n

(REVISED COURSE)

ZMlni<Kj

- TT

& CD-5490 [Total Marks: 100


Con/5160-07.


(3 Hours)

N.B. : (1)    Question No. 1 is compulsory.

(2)    Attempt any four questions out of remaining six questions.

(3)    Assumptions made should be clearly stated.

(4)    All computer programs and program segment only in C*\

Write an object oriented program (in terms of classes and objects) to evaluate the expression for standard deviation as given below

10


1/2

n


w w k2

l (X -XJ

N

With the help of suitable program explain

10


ijcopy constructors

ii)Friend functions____

Expand the class member functions to satisfy the    20

functionality described along side the function declaration

class Dmanip {

private : int N,A[100]; public:

DmanipO; // Default constructor void Dispiay();

void InputArray ()// input function to read array A void lnputArray(int M, int X[100]);//overloaded input function void Sort() // sorting data stored in Array A void Search(int data); void lnsert(int data); void Delete(int data);

void Merge (Dmanip OB1, Dmanip OB2); //Merging A of (Object 1 and A of Object 2 resulting in A of object about /which the merge function get referenced };    [ TURN OVER

3

\

Write Object Oriented programs to exemplify different types of inheritance namely

   public

   protected

   private

   and multiple and hierarchical Inheritance

20

4

Exemplify Binary Operator overloading with the help of a class and its member functions for overloading the following

binary operators (+, *, /)

20

5

Write a program to arrange the names of students in descending order their marks input data consists of student details such as name, ID.no, subject marks of Mathematics, Physics, Chemistry and total of these three.( Note: Use hierarchical struct and array of struct)

20

6

a

Explain abstract classes , late binding, pure virtual functions and virtual classes

10

b

With help of suitable programs and functions explain parameter passing by reference and parameter passing by value

10

7

Write notes on the following

a.    Overriding functions

b.    Function overloading

c.    Function templates

d.    Static members of classes and objects

20







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER University of Mumbai 2007-2nd Sem B.E FE Computer Programming II - exam paper