CS-304 Final Term Exams Preparation Virtual University With Answers

CS-304 Final Term Exams Preparation Virtual University

Sr. # Questions Answers Choice
1 Which of the following are an advantage of OOP? OOP makes it easy to re-use the code It provides an ability to create one user defined data type by extending the other It provides the facility of defining Abstract data types through which real world entities can be defined better All of the given options
2 For classes with common behavior, you can save effort by placing the common behavior in a __________. Derived Class Base class Deprived Class Named class
3 Using encapsulation we can achieve Information hiding Least interdependencies among modules Implementation independence All of given options
4 A member function having the same name as that of a class and a ~ sign with it is called, Constructor Getter Setter Destructor
5 Static variable can be initialized more than once. True False Not Sure
6 Which of the following is not an example of multiple inheritances?---------- Mermaid Woman None of the given Amphibious Vehicle
7 In order to free the memory occupied by the object, we use ------------- Constructor Destructor Shallow Copy Deep Copy
8 The >= operator can be overloaded. True False Not Sure
9 A generalization-specialization relation between classes are implemented using data hiding friend classes encapsulation inheritance
10 _________ satisfy the condition of polymorphism Carbon Coal Coal all of the given
Download This Set

Is this page helpful?