30th March 2013 09:54 AM | ||
Arvind Kumar | Re: BPUT Question Papers Download You are looking for the BPUT B.Tech 3rd Sem Object Oriented Programming Using C++ question paper, here i am providing: 1, Identify whether the following statements are true or false. Justify your answer in each case 2 X 10 a.A virtual base class is useful in C++ when the different methods in the base and derived classes have the same name. b. It is prudent to use the default destructors provided by the C++ language rather than writing specified destructors for a class. c. In C++ suppose you derive a class named manager from a class named employee. Then you can assign an object of the manager class without encountering any compilation error. d. C++ classes can be considered as abstract data type (ADTs) e. Deep class hierarchies are signs of an object oriented design done well. f. The aggregation relationship among classes is symmetric. g. The use of the inheritance features in an object oriented program result in code reuse. h. The aggregation relationship among classes can be considered to be a special type of association relationship. i. An object oriented program that does not derive new classes through inheritance can not exhibit polymorphic behaviour through dynamic binding. 2, Write C++ for the following description of the class / subclass : 10 Define an abstract base class “ Geomshape” that has the following • Data members for the (x,y) coordinate position • A constructer for initializing Geomshapes • A virtual method ‘MoveShape()’ • A virtual method ‘PrintShape()’ to output an object Derive subclasses ‘GeomLine’,’GeomCircle’, and ‘GeomTriangle’ from ‘GeomShape’ and ‘MoveShape()’ and ‘PrintShape()’ methods for each of the sub-classes. You may assume appropriate data members for each of the subclasses. You should use appropriate access controls in ‘GeomShape’. 5 X 2 3. a. An abstract class cannot have instances. What then is the use of having abstract classes. Explain your answer using a suitable example. For more detailed question paper, here is attachment: For more info contact here: Contact: Jail Road, Rourkela, Odisha 0661 240 2560 Map: | |
29th March 2013 03:11 PM | ||
Rudra NM | BPUT Question Papers Download Will you please provide me the BPUT B.Tech 3rd Sem Object Oriented Programming Using C++ question paper? |