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 ________ relationship indicates that an object contains other objects.
Choose an answer
None of given
has-a’
is-a’
be
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
Assume a class Derv that is privately derived from class Base. An object of class Derv located in main() can access
Choose an answer
public members of Derv.
protected members of Derv.
private members of Derv.
protected members of Base.
Previous
Skip
Next
Question # 4
One purpose of an iterator in the STL is to connect algorithms and containers.
Choose an answer
True
False
Not Sure
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
Two important STL associative containers are _______ and _______.
Choose an answer
set,map
sequence,mapping
setmet,multipule
sit,mat
Previous
Skip
Next
Question # 7
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 # 8
a’A static member function can be called, even when a class is not ____
Choose an answer
Declared
Define
Instantiated
Called
Previous
Skip
Next
Question # 9
Graphical representation of the classes and objects is called object model it shows -------
Choose an answer
Class Name only
Class Name and attributes
Relationships of the objects and classes
all of the given
Previous
Skip
Next
Question # 10
________ and ______ methods may not be declared abstract.
Choose an answer
private,static
private,public
static,public
None of the given
Previous
Skip
Next
Question # 11
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
Back