Download Model question papers & previous years question papers
|
Posted By: ashish Member Level: Diamond Posted Date: 25 Dec 2007
|
2005 Guru Gobind Singh Indraprastha University C++ Language BIS Question paper
|
|
|
END-TERM EXAMINATION FOURTH SEMESTER [BIS] - MAY 2005 Paper Code: BIS 212 Subject: C++ Language Time : 3 Hours (Reappear) Maximum Marks : 70 Note : Attempt six questions in all including Q,1 which is compulsory. Q.1 carries 20 marks and remaining questions carry 10 marks each. Q.1 Write notes on any five of the following: (a) Generic functions (b) Pointers and References (c) Copy Constructor (d) File I/O (e) Overloading Unary Operator (f) Low Level and High Level Languages
Q.2 (a) Explain the difference between a structure and a class. (b) Create a structure PROMPT that contains two private integer data members and two public function stype ( ) and show ( ) which set and show the value of integer data members.
Q.3 (a) Explain what do you understand by a function. (b) Write a function NEG ( ) which reverse the sign of its integer parameter using a pointer parameter and a reference parameter.
Q.4 What is function overloading. Create a function ORDER ( ) that take two integer reference parameter and interchange their contents.
Q.5 What are friend operator functions? How do they differe from member operator functions. Assume a class TEMP has two private integer data members X and Y. Overload the binary + operator using a friend function.
Q.6 Differentiate between single and multiple inheritance. How the constructor and destructors of the base and drived classes are executed when you create objects of drived classes. Explain with an example.
Q.7 What do you understand by inserters and extractors? Create inserter and extractor functions for a class having two integer and one double private data members.
Q.8 What is a virtual function? How it helps achieve runtime polymorphism? What type of functions can not be made virtual? Also explain the concept of arc abstract class.
Return to question paper search
|
|
|
Submit Previous Years University Question Papers and
make money from adsense revenue sharing program
Are you preparing for a university examination? Download model question papers
and practise before you write the exam.