07-18-2010, 06:15 PM
FINALTERM EXAMINATION
Fall 2009
CS304- Object Oriented Programming
Fall 2009
CS304- Object Oriented Programming
Time: 120 min
Marks: 75
Marks: 75
Question No: 1 ( Marks: 1 ) - Please choose one
Which one of the following terms must relate to polymorphism?
► Static allocation
► Static typing
► Dynamic binding
► Dynamic allocation
Question No: 2 ( Marks: 1 ) - Please choose one
Multiple inheritance can be of type
► Public
► Private
► Protected
► All of the given
Question No: 3 ( Marks: 1 ) - Please choose one
When a subclass specifies an alternative definition for an attribute or method of its superclass, it is _______ the definition in the superclass.
► overload
► overriding
► copy riding
► none of given
Question No: 4 ( Marks: 1 ) - Please choose one
Like template functions, a class template may not handle all the types successfully.
► True
► False
Question No: 5 ( Marks: 1 ) - Please choose one
It is sometimes useful to specify a class from which no objects will ever be created.
► True
► False
Question No: 6 ( Marks: 1 ) - Please choose one
Assume a class Derv that is privately derived from class Base. An object of class Derv located in main() can access
► public members of Derv.
► protected members of Derv.
► private members of Derv.
► protected members of Base.
Question No: 7 ( Marks: 1 ) - Please choose one
A pointer to a base class can point to objects of a derived class.
► True
► False
Question No: 8 ( Marks: 1 ) - Please choose one
A copy constructor is invoked when
► a function do not returns by value.
► an argument is passed by value.
► a function returns by reference.
► an argument is passed by reference.
Question No: 9 ( Marks: 1 ) - Please choose one
A function call is resolved at run-time in___________
► non-virtual member function.
► virtual member function.
► Both non-virtual member and virtual member function.
► None of given
Question No: 10 ( Marks: 1 ) - Please choose one
When the base class and the derived class have a member function with the same name, you must be more specific which function you want to call (using ___________).
► scope resolution operator
► dot operator
► null operator
► Operator overloading
For Complete Solved Paper of CS304 Download the File Below
