How To Exam?

a knowledge trading engine...


Veer Narmad South Gujarat University 2011-3rd Sem B.C.A Computer Application SB-1444 - 304 : Object Oriented Programming Second Year ( ) - Question Paper

Friday, 26 April 2013 07:20Web



Second Year B. C. A. (Sem. Ill) Examination

March / April - 2011

Paper - 304 : Object Oriented Programming

SB-1444

[Total Marks : 70

Time : 3 Hours]


Instructions :

(1)

Seat No.:


M    CnsLLnlcj.L{l [qoicu    u? snqw <h>h41.

Fillup strictly the details of signs on your answer book.

Name of the Examination :

S. Y. B. C. A. (Sem. 3)

Name of the Subject:

Paper - 304 : Object Oriented Programming

Student's Signature


-Subject Code No.:

1

4

4

4

-Section No. (1,2,.....): Nil

(2)    Figures on the right indicate marks.

(3)    Take assumption whenever necessary.

1 Answer in short : (any fourteen)    14

(i)    What is inline function ? Why it is used ?

(ii)    Explain nested class.

(iii)    List characteristics of OOP.

(iv)    List operators which can not overload.

(v)    What is pure virtual function ? When it is required ?

(vi)    Explain main ( ) of C++.

(vii)    Define Destructor.

(viii)    What is significance of new and delete ?

(ix)    What is use of scope resolution operator : : in C++.

(x)    Define abstract class.

(xi)    Define object. Also explain array of object.

(xii)    List advantage of Binary file.

(xiii)    Explain getline ( ) function.

(xiv)    Explain width ( ) function. Give example.

(xv)    Explain open ( ) and close ( ) function of file.

(xvi)    Define hybrid inheritance.

Answer the followings :

(a)    How polymorphism achieved at runtime and compile 6 time give example of runtime ?

(b)    What is OOP ? How it is differ from POP ? List    4 applications of OOP.

(c)    What is friend function ? Explain with example.    4

OR

(a)    Create a base class media, declare two data member 6 title and price. Derive two class tape and book from media. Declare virtual function on display in base class media and display details of both book (title, price, page) and tape (title, price, play time) details.

(b)    Write a program to create a class scale. Define two 5 variable feet and inches. Define member function getscale, putscale and sum function to add to measure passed object as argument to the function sum.

(c)    Explain inline function giving suitable example.    3

(a)    What is constructor ? Explain copy constructor    7 and parameterized constructor.

(b)    Explain virtual base class giving example.    5

(c)    Explain data abstraction and data encapsulation.    2

OR

3 (a) Write a program to add two complex number using 7 friend function.

(b)    Explain this pointer giving example.    5

(c)    List file modes.    2

(a) What is operator overloading ? Write rules for    6

operator overloading. Give example.

OR

(a)    Create a class string and overload +, ==operator to 6 perform string concate, comparison.

(b)    Design two class to support following type conversion. 6 Kilometer k

Meter m

m=k convert kilometer to meter. Write a program to carry out this conversion.

(c)    Explain static data    2

5 (a) Write a binary file contains information of students 6 i.e. sno, name, percentage. Write a program to copy contents of this file to another file where percentage is <40.

(b)    Explain file types, also explain of stream and    4 ifstream.

(c)    Why user defined manipulator is needed ? Design a 4 single manipulator to provide the following output.

(i)    Right justified

(ii)    6 column width

(iii)    4 digit precision

(iv)    Filling unused space with

SB-1444]    4    [ 2400 ]







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Veer Narmad South Gujarat University 2011-3rd Sem B.C.A Computer Application SB-1444 - 304 : Object Oriented Programming Second Year ( ) - Question Paper