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
In a de-queue, (chose the best option)
Choose an answer
data can be quickly inserted or deleted at any arbitrary location.
data can be inserted or deleted at any arbitrary location, but the process is relatively slow. (Object-Oriented Programming in C++)
data can not be quickly inserted or deleted at either end
data can be inserted or deleted at either end, but the process is relatively slow.
Previous
Skip
Next
Question # 2
_______ remain in memory even when all objects of a class have been destroyed.
Choose an answer
Static variables
Instance variable
Primitive variables
None of given
Previous
Skip
Next
Question # 3
A pointer to a base class can point to objects of a derived class.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 4
Multiple inheritance can be of type
Choose an answer
Public
Private
Protected
All of the given
Previous
Skip
Next
Question # 5
The >= operator can be overloaded.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 6
When a variable is define as static in a class then all object of this class,
Choose an answer
Have different copies of this variable
Have same copy of this variable
Can not access this variable
None of given
Previous
Skip
Next
Question # 7
A normal C++ operator that acts in special ways on newly defined data types is said to be
Choose an answer
glorified
encapsulated
classified
overloaded
Previous
Skip
Next
Question # 8
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 # 9
A template argument is preceded by the keyword ________.
Choose an answer
vector
class
template
type*
Previous
Skip
Next
Question # 10
A C++ class is similar to -----------------
Choose an answer
Structure
Header File
Library File
None of the given
Previous
Skip
Next
Question # 11
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
Back