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 of the following operators always takes no argument if overloaded?
Choose an answer
/
-
+
++
Previous
Skip
Next
Question # 2
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 # 3
template <> class Vector
{ } This is an example of partial specialization.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 4
A member function having the same name as that of a class and a ~ sign with it is called,
Choose an answer
Constructor
Getter
Setter
Destructor
Previous
Skip
Next
Question # 5
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 # 6
A range is often supplied to an algorithm by two _______ values.
Choose an answer
italic
iteration
iterator
None of given
Previous
Skip
Next
Question # 7
In ________, a base class can be replaced by its derived class,
Choose an answer
Sub-typing
Super-typing
Multiple-typing
Restricted-typing
Previous
Skip
Next
Question # 8
Suppose you create an uninitialized vector as follows: vector
evec; After adding the statment, evec.push_back(21); what will happen?
Choose an answer
The following statement will add an element to the start (the back) of evec and will initialize it with the value 21
The following statement will add an element to the center of evec and will reinitialize it with the value 21
The following statement will delete an element to the end (the back) of evec and will reinitialize it with the value 21
The following statement will add an element to the end (the back) of evec and initialize it with the value 21.
Previous
Skip
Next
Question # 9
Which one of the following terms must relate to polymorphism?
Choose an answer
Static allocation
Static typing
Dynamic binding
Dynamic allocation
Previous
Skip
Next
Question # 10
Inheritance is a way to
Choose an answer
organize data.
add features to existing classes without rewriting them
improve data-hiding and encapsulation.
Previous
Skip
Next
Question # 11
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
Back