CS-304 Final Term Exams Preparation Virtual University With Answers

CS-304 Final Term Exams Preparation Virtual University

Sr. # Questions Answers Choice
1 ______ is a relationship Inheritance Polymarphism abstraction encapsulation
2 The ________ relationship indicates that an object contains other objects. None of given has-a’ is-a’ be
3 Constant objects cannot change their state, True False Not Sure
4 ________ provide the facility to access the data member. accesser function private function inline function None of the given
5 a’A static member function can be called, even when a class is not ____ Declared Define Instantiated Called
6 Suppose that the Test class does not have an overloaded assignment operator. What happens when an assignment a=b; is given for two Test objects a and b? The automatic assignment operator is used The copy constructor is used Compiler error Run-time error
7 A C++ class is similar to -------------------- Structure Header File Library File None of the given
8 In object orientated programming, a class of objects cans _____________ properties from another class of objects Utilize Borrow Inherit Adopt
9 The technique in which we visualize our programming problems according to real life’s problems is called ---------------- structured programming object oriented Programming procedural programming non of the given
10 To convert from a user-defined class to a basic type, you would most likely use a built-in conversion operator a one-argument constructor. an overloaded = operator. a conversion operator that’s a member of the class.
Download This Set

Is this page helpful?