CS-304 Final Term Exams Preparation Virtual University With Answers

image
image
image

CS-304 Final Term Exams Preparation Virtual University

Sr. # Questions Answers Choice
1 A template argument is preceded by the keyword ________. vector class template type*
2 A pointer to a base class can point to objects of a derived class. True False Not Sure
3 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.
4 Non Template Friend functions of a class are friends of ________instance/s of that class. All One specific All instances of one date type None of the given options
5 Template functions use _________ than ordinary functions. Greater Memory Lesser Memory Equal Memory None of the given options
6 Which of the following is/are advantage[s] of generic programming? Reusability Writability Maintainability All of given
7 In Private -------------- only member functions and friend classes or functions of a derived class can convert pointer or reference of derived object to that of parent object specialization inheritance abstraction composition
8 By default the vector data items are initialized to ____ 0 0.0 1 null
9 A class template may inherit from another class template. True False Not Sure
10 Like template functions, a class template may not handle all the types successfully. True False Not Sure
Download This Set