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
We can use "this" pointer in the constructor in the body and even in the initialization list of any class if we are careful
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 2
C++ compiler does not allow to dynamically allocate memory for object
Choose an answer
False
True
Not sure
Previous
Skip
Next
Question # 3
Template functions use _________ than ordinary functions.
Choose an answer
Greater Memory
Lesser Memory
Equal Memory
None of the given options
Previous
Skip
Next
Question # 4
An abstract class is useful when
Choose an answer
We do not derive any class from it.
There are multiple paths from one derived class to another.
We do not want to instantiate its object
You want to defer the declaration of the class.
Previous
Skip
Next
Question # 5
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
Question # 6
A generalization-specialization relation between classes are implemented using
Choose an answer
data hiding
friend classes
encapsulation
inheritance
Previous
Skip
Next
Question # 7
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 # 8
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 # 9
We can use "this" pointer in the constructor in the body and even in the initialization list of any class if we are careful,
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 10
The concept of derived classes is involved in,
Choose an answer
inheritance
encapsulation
array
structure
Previous
Skip
Next
Question # 11
Which part of an object exhibits its state?
Choose an answer
Data
Operations
Any public part
Any private part
Previous
Skip
Next
Back