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 statement objA=objB; will cause a compiler error if the objects are of different classes.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 2
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 # 3
Like template functions, a class template may not handle all the types successfully.
Choose an answer
True
False
Not Sure
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
________ and ______ methods may not be declared abstract.
Choose an answer
private,static
private,public
static,public
None of the given
Previous
Skip
Next
Question # 6
Two important STL associative containers are _______ and _______.
Choose an answer
set,map
sequence,mapping
setmet,multipule
sit,mat
Previous
Skip
Next
Question # 7
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 # 8
In a de-queue, (chose the best option)
Choose an answer
data can be quickly inserted or deleted at any arbitrary location.
data can be inserted or deleted at any arbitrary location, but the process is relatively slow. (Object-Oriented Programming in C++)
data can not be quickly inserted or deleted at either end
data can be inserted or deleted at either end, but the process is relatively slow.
Previous
Skip
Next
Question # 9
When the base class and the derived class have a member function with the same name, you must be more specific which function you want to call (using ___________).
Choose an answer
scope resolution operator
dot operator
null operator
Operator overloading
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
Constant objects cannot change their state,
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Back