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 copy() algorithm returns an iterator to
Choose an answer
the last element copied from
the last element copied to.
the element one past the last element copied from.
the element one past the last element copied to.
Previous
Skip
Next
Question # 2
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 # 3
What a derived class can add?
Choose an answer
New data members
New member functions and New friend function
New constructors and destructor
All of given
Previous
Skip
Next
Question # 4
template <> class Vector
{ } This is an example of partial specialization.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 5
Encapsulation means
Choose an answer
Extending the behaviour of class in another class
Data and behaviour are tightly coupled within an entity
One entity takes all the attributes and operations of the other
Taking out the common features and put those in a separate class
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
The type that is used to declare a reference or pointer is called its -------
Choose an answer
default type
static type
abstract type
reference type
Previous
Skip
Next
Question # 8
Non Template Friend functions of a class are friends of ________instance/s of that class.
Choose an answer
All
One specific
All instances of one date type
None of the given options
Previous
Skip
Next
Question # 9
The sub-object’s life is not dependant on the life of master class in __________.
Choose an answer
Separation
Composition
Aggregation
Previous
Skip
Next
Question # 10
Suppose we have two derived classes from a single class, can we write a method with same name in both these derived classes? Choose the best option.
Choose an answer
No
Only if the two classes have the same name
Only if the main program does not declare both kinds
Yes
Previous
Skip
Next
Question # 11
The user must define the operation of the copy constructor.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Back