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
------------- members are somewhere between public and private members. They are used in inheritance
Choose an answer
protected
public
private
global
Previous
Skip
Next
Question # 2
The >= operator can be overloaded.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 3
The mechanism of selecting function at run time according to the nature of calling object is called,
Choose an answer
late binding
static binding
virtual binding
None of the given options
Previous
Skip
Next
Question # 4
How the information hidden within an object can be accessed?
Choose an answer
Through its interface
Through its private data members
Through its private member functions
Through both public and private members
Previous
Skip
Next
Question # 5
Algorithms can only be implemented using STL containers.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 6
Suppose there is an object of type Person, which of the following can be considered as one of its attributes
Choose an answer
Name
Age
Work()
Both Name and Age
Previous
Skip
Next
Question # 7
Which of the following causes run time binding?
Choose an answer
Declaring object of abstract class
Declaring pointer of abstract class
Declaring overridden methods as non-virtual
None of the given
Previous
Skip
Next
Question # 8
A template provides a convenient way to make a family of
Choose an answer
variables and data members
functions and classes
classes and exceptions
programs and algorithms
Previous
Skip
Next
Question # 9
Which one is not keyword in C++?
Choose an answer
operator
B_op
const
None of given
Previous
Skip
Next
Question # 10
If a class D has been derived using protected inheritance from class B (If B is a protected base and D is derived class) then public and protected members of B -------- accessed by member functions and friends of class D and classes derived from D
Choose an answer
can be
cannot be
does restirct to be
does restirct to be
Previous
Skip
Next
Question # 11
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
Back