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 life of sub object is not dependant on the life of master class in ___________
Choose an answer
Composition
Aggregation
Separation
None of the given
Previous
Skip
Next
Question # 2
Classes like TwoDimensionalShape and ThreeDimensionalShape would normally be concrete, while classes like Sphere and Cube would normally be abstract.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 3
his pointers are not accessible for static member functions.
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
Suppose you create an uninitialized vector as follows: vector
evec; After adding the statment, evec.push_back(21); what will happen?
Choose an answer
The following statement will add an element to the start (the back) of evec and will initialize it with the value 21.
The following statement will add an element to the center of evec and will reinitialize it with the value 21.
The following statement will delete an element to the end (the back) of evec and will reinitialize it with the value 21
The following statement will add an element to the end (the back) of evec and initialize it with the value 21.
Previous
Skip
Next
Question # 6
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 # 7
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 # 8
Vectors contain contiguous elements stored as a[an] ___.
Choose an answer
variable
array
function
datatype
Previous
Skip
Next
Question # 9
A class can be identified from a statement by ------------
Choose an answer
Noun
Pronoun
Verb
Adverb
Previous
Skip
Next
Question # 10
------------- members are somewhere between public and private members. They are used in inheritance
Choose an answer
protected
public
private
global
Previous
Skip
Next
Question # 11
The >= operator can be overloaded.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Back