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
What is true about function templates?
Choose an answer
The compiler generates only one copy of the function template
The compiler generates a copy of function respective to each type of data
The compiler can only generate copy for the int type data
non of the given
Previous
Skip
Next
Question # 2
Vectors contain contiguous elements stored as a[an] ___.
Choose an answer
variable
array
function
datatype
Previous
Skip
Next
Question # 3
In Private -------------- only member functions and friend classes or functions of a derived class can convert pointer or reference of derived object to that of parent object
Choose an answer
specialization
inheritance
abstraction
composition
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
A C++ class is similar to -----------------
Choose an answer
Structure
Header File
Library File
None of the given
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
Algorithms can only be implemented using STL containers.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 8
The ________ relationship indicates that an object contains other objects.
Choose an answer
None of given
has-a’
is-a’
be
Previous
Skip
Next
Question # 9
Associativity can be changed in operator overloading.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 10
his pointers are not accessible for static member functions.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 11
One purpose of an iterator in the STL is to connect algorithms and containers.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Back