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
______ is a relationship
Choose an answer
Inheritance
Polymarphism
abstraction
encapsulation
Previous
Skip
Next
Question # 2
Which of the following may not be an integral part of an object?
Choose an answer
State
Behaviour
Protected data members
All of given
Previous
Skip
Next
Question # 3
Multiple inheritance can be of type
Choose an answer
Public
Private
Protected
All of the given
Previous
Skip
Next
Question # 4
Vectors contain contiguous elements stored as a[an] ___.
Choose an answer
variable
array
function
datatype
Previous
Skip
Next
Question # 5
What problem(s) may occur when we copy objects without using deep copy constructor?
Choose an answer
Dangling pointe
Memory Leakage
All of the given
System crash
Previous
Skip
Next
Question # 6
________ is/are used to access information hidden within an object?
Choose an answer
Interface
Private data members
Private member functions
Both public and private members
Previous
Skip
Next
Question # 7
Which of the following is an integral part of an object?
Choose an answer
State
Behavior
Unique identity
All of the given
Previous
Skip
Next
Question # 8
Assume a class C with objects obj1, obj2, and obj3. For the statement obj3 = obj1 - obj2 to work correctly, if the overloaded - operator must
Choose an answer
take two arguments
return a value
create a named temporary object.
take four arguments
Previous
Skip
Next
Question # 9
A template argument is preceded by the keyword ________.
Choose an answer
vector
class
template
type*
Previous
Skip
Next
Question # 10
Which of the following operators always takes no argument if overloaded?
Choose an answer
/
-
+
++
Previous
Skip
Next
Question # 11
Algorithms can only be implemented using STL containers.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Back