How To Exam?

a knowledge trading engine...


Punjab Technical University 2007 B.C.A Computer Application Object oriented programming in C++ - Question Paper

Monday, 08 April 2013 09:20Web



Roll No........................

Total No. of Questions : 13]    [Total No. of Pages : 02

J-3168[S-1024]    [2037] BCA (Semester - 3rd) OBJECT ORIENTED PROGRAMMING USING C++ (BCA - 304)

Time : 03 Hours    Maximum Marks : 75

Instruction to Candidates:

1)    Section - A is compulsory.

2)    Attempt any Nine questions from Section - B.

Section - A

QI)    (25x2 = 30)

a)    Enumerate the rules of identifiers.

b)    What are the advantages of using functions in a program?

c)    What is a structure variable?

d)    What do you understand by memory leaks?

e)    How are the elements of one dimensional array stored and accessed?

f)    What is a constructor? Is it mandatory to use constructor in a class?

g)    What is polymorphism?

h)    How many arguments are required in the definition of an overloaded binary operator?

i)    What is a class? How does it accomplish data hiding? j)    What is a virtual function?

k)    Why is that all functions of ostream class can operate on fstream class?

I)    Differentiate between getline ( ) and getc ( ) functions.

m) Name the header file of C ++ to which following built-in function belong to :

(0 gets () (ii) getxy ()

n) What is the difference between the functioning of ios::ate and ios::app file modes?

o) Differentiate between ifstream class and ofstream class.

Section - B

(9x5 = 45)

Q2A Write a program to find whether the number entered by the user is a palindrome or not.

QQ Discuss features of object oriented programming.

Q4) Explain nesting of structures with a suitable example.

Q5) Explain at least two techniques of passing arguments for a function.

Q6) Explain with the help of example operator overloading for unary operator (for non friend function).

Q7) Explain the usage of public, private and protected access modifiers for members in inheritance.

Q8) Write a program to add multiply complex numbers (Make use of constructor overloading and destructors).

Q9)    Explain with example multiple inheritance.

QIO)    Write a short note on opening a file with open ( ) member function.

QII)    Write a program that creates a text file.

Q12)    What are input and output streams? Explain various streams available in C ++.

Q13)    Discuss redirection of input and output.

J-3168[S-1024]

2








Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Punjab Technical University 2007 B.C.A Computer Application Object oriented programming in C++ - Question Paper