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
Non Template Friend functions of a class are friends of ________instance/s of that class.
Choose an answer
All
One specific
All instances of one date type
None of the given options
Previous
Skip
Next
Question # 2
C++ compiler does not allow to dynamically allocate memory for object
Choose an answer
False
True
Not sure
Previous
Skip
Next
Question # 3
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 # 4
------------- members are somewhere between public and private members. They are used in inheritance
Choose an answer
protected
public
private
global
Previous
Skip
Next
Question # 5
Which is not the Advantage of inheritance?
Choose an answer
providing class growth through natural selection.
facilitating class libraries.
avoiding the rewriting of code.
providing a useful conceptual framework.
Previous
Skip
Next
Question # 6
By default the vector data items are initialized to ____
Choose an answer
0
0.0
1
null
Previous
Skip
Next
Question # 7
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 # 8
Like template functions, a class template may not handle all the types successfully.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 9
An overloaded operator always requires one less argument than its number of operands.
Choose an answer
True
False
Not sure
Previous
Skip
Next
Question # 10
In case of multiple inheritance a derived class inherits,
Choose an answer
Only the public member functions of its base classes
Only the public data members of its base classes
Both public data members and member functions of all its base classes
Data members and member functions of any two base classes
Previous
Skip
Next
Question # 11
Which of the following operators always takes no argument if overloaded?
Choose an answer
/
-
+
++
Previous
Skip
Next
Back