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
Each try block can have ______ no. of catch blocks.
Choose an answer
1
2
3
As many as necessary
Previous
Skip
Next
Question # 2
In order to define a class template, the first line of definition must be:
Choose an answer
template
typename <template T>
Template Class
Class <Template T>
Previous
Skip
Next
Question # 3
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 # 4
Which type of inheritance is being represented by the following statement, class X : public A, public B { ... ... };
Choose an answer
Single inheritance
Multiple inheritance
Double inheritance
None of the given options
Previous
Skip
Next
Question # 5
A class template may inherit from another class template.
Choose an answer
True
False
Not Sure
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
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 # 8
Using encapsulation we can achieve
Choose an answer
Information hiding
Least interdependencies among modules
Implementation independence
All of given options
Previous
Skip
Next
Question # 9
Algorithms can only be implemented using STL containers.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 10
What problem(s) may occur when we copy objects without using deep copy constructor?
Choose an answer
Dangling pointe
Memory Leakage
All of the given
System crash
Previous
Skip
Next
Question # 11
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
Back