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
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 # 2
Which is not the Advantage of inheritance?
Choose an answer
providing class growth through natural selection.
facilitating class libraries
avoiding the rewriting of code.
providing a useful conceptual framework.
Previous
Skip
Next
Question # 3
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 # 4
Two important STL associative containers are _______ and _______.
Choose an answer
set,map
sequence,mapping
setmet,multipule
sit,mat
Previous
Skip
Next
Question # 5
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 # 6
For classes with common behavior, you can save effort by placing the common behavior in a __________.
Choose an answer
Derived Class
Base class
Deprived Class
Named class
Previous
Skip
Next
Question # 7
Which one of the following terms must relate to polymorphism?
Choose an answer
Static allocation
Static typing
Dynamic binding
Dynamic allocation
Previous
Skip
Next
Question # 8
___________, which means if A declares B as its friend it does NOT mean that A can access private data of B. It only means that B can access all data of A.
Choose an answer
Friendship is one way only
Friendship is two way only
NO Friendship between classes
Any kind of friendship
Previous
Skip
Next
Question # 9
Which sentence clearly defines an object?
Choose an answer
one instance of a class
another word for a class.
a class with static methods.
a method that accesses class attributes.
Previous
Skip
Next
Question # 10
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 # 11
Which of these are examples of error handling techniques?
Choose an answer
Abnormal Termination
Graceful Termination
Return the illegal
all of the given
Previous
Skip
Next
Back