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
The statement objA=objB; will cause a compiler error if the objects are of different classes.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 2
The members of a class that can be accessed without creating the object of the class is called
Choose an answer
Private member
Data Member
Public Member
Static
Previous
Skip
Next
Question # 3
Static variable can be initialized more than once.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 4
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 # 5
In order to free the memory occupied by the object, we use -------------
Choose an answer
Constructor
Destructor
Shallow Copy
Deep Copy
Previous
Skip
Next
Question # 6
The ________ relationship indicates that an object contains other objects.
Choose an answer
None of given
has-a’
is-a’
be
Previous
Skip
Next
Question # 7
A function call is resolved at run-time in___________
Choose an answer
non-virtual member function.
virtual member function.
Both non-virtual member and virtual member function.
None of given
Previous
Skip
Next
Question # 8
The find() algorithm
Choose an answer
takes container elements as its first two arguments.
finds matching sequences of elements in two containers.
finds a container that matches a specified container.
takes iterators as its first two arguments.
Previous
Skip
Next
Question # 9
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 # 10
An STL container can not be used to
Choose an answer
hold objects of class employee.
store elements in a way that makes them quickly accessible
compile c++ programs.
organize the way objects are stored in memory
Previous
Skip
Next
Back