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
Vectors contain contiguous elements stored as a[an] ___.
Choose an answer
variable
array
function
datatype
Previous
Skip
Next
Question # 2
Which one of the following is not an object association?
Choose an answer
Simple Assocation
Inheritance
Aggregation
Composition
Previous
Skip
Next
Question # 3
Which one is not keyword in C++?
Choose an answer
operator
B_op
const
None of given
Previous
Skip
Next
Question # 4
Which of the following is/are advantage[s] of generic programming?
Choose an answer
Reusability
Writability
Maintainability
All of given
Previous
Skip
Next
Question # 5
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 # 6
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 # 7
Algorithms can only be implemented using STL containers.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 8
The copy() algorithm returns an iterator to
Choose an answer
the last element copied from
the last element copied to.
the element one past the last element copied from.
the element one past the last element copied to.
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
Which of the following is the best approach to implement generic algorithms with minimum number of coding lines?
Choose an answer
Templates
Overloading
Overriding
Friend function/class
Previous
Skip
Next
Question # 11
Friend functions are _____________ functions of a class.
Choose an answer
None of given
object member
non-member
data member
Previous
Skip
Next
Back