More Classes
5th Class
6th Class
7th Class
8th Class
9th Class
10th Class
11th Class
12th Class
NAT I
NAT II
CSS
IQ
General Knowledge
MDCAT
ECAT
GAT General
GAT Subject
Other Links
Go to Home
Online Tests
CS-304 Final Term Exams Preparation Virtual University MCQs With Answers
Question # 1
Which construct is the source for the creation of an object?
Choose an answer
Destructor of the class
New operator
Delete operator
Constructor of the class
Previous
Skip
Next
Question # 2
Graphical representation of the classes and objects is called object model it shows -------
Choose an answer
Class Name only
Class Name and attributes
Relationships of the objects and classes
all of the given
Previous
Skip
Next
Question # 3
Which of the following is not an example of multiple inheritances?----------
Choose an answer
Mermaid
Woman
None of the given
Amphibious Vehicle
Previous
Skip
Next
Question # 4
The concept of derived classes is involved in,
Choose an answer
inheritance
encapsulation
array
structure
Previous
Skip
Next
Question # 5
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 ___________).
Choose an answer
scope resolution operator
dot operator
null operator
Operator overloading
Previous
Skip
Next
Question # 6
Which operator can not be overloaded?
Choose an answer
The relation operator ( >= )
Assignment operator ( = )
Script operator ( [] )
Conditional operator (? : )
Previous
Skip
Next
Question # 7
Like template functions, a class template may not handle all the types successfully.
Choose an answer
True
True
Not Sure
Previous
Skip
Next
Question # 8
Which of the following is/are advantage[s] of generic programming?
Choose an answer
Reusability
Writability
Maintainability
All of given
Previous
Skip
Next
Question # 9
One purpose of an iterator in the STL is to connect algorithms and containers.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 10
A copy constructor is invoked when
Choose an answer
a function do not returns by value.
an argument is passed by value.
a function returns by reference
an argument is passed by reference
Previous
Skip
Next
Question # 11
The sub-object’s life is not dependant on the life of master class in __________.
Choose an answer
Separation
Composition
Aggregation
Previous
Skip
Next
Back