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 specialization pattern
after the name says that this specialization is to be used for every,
Choose an answer
data type
meta type
virtual type
pointer type
Previous
Skip
Next
Question # 2
Which construct is the source for the creation of an object?
Choose an answer
Destructor of the class
New operator
Delete operator
Constructor of the class
Previous
Skip
Next
Question # 3
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
Question # 4
In OOP a class is an example of ____
Choose an answer
Data Type
Abstract Type
User defined type
None of the given
Previous
Skip
Next
Question # 5
A copy constructor is invoked when
Choose an answer
a function do not returns by value.
an argument is passed by value
a function returns by reference.
an argument is passed by reference.
Previous
Skip
Next
Question # 6
Algorithms can only be implemented using STL containers.
Choose an answer
True
False
Not Sure
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
What is true about function templates?
Choose an answer
The compiler generates only one copy of the function template
The compiler generates a copy of function respective to each type of data
The compiler can only generate copy for the int type data
non of the given
Previous
Skip
Next
Question # 9
Which of the following is an integral part of an object?
Choose an answer
State
Behavior
Unique identity
All of the given
Previous
Skip
Next
Question # 10
Which of the following may not be an integral part of an object?
Choose an answer
State
Behaviour
Protected data members
All of given
Previous
Skip
Next
Question # 11
Which of the following is the best approach if it is required to have more than one functions having exactly same functionality and implemented on different data types?
Choose an answer
Templates
Overloading
Data hiding
Encapsulation
Previous
Skip
Next
Back