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
A function call is resolved at run-time in___________
Choose an answer
non-virtual member function.
virtual member function.
Both non-virtual member and virtual member function.
None of given
Previous
Skip
Next
Question # 2
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 # 3
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 # 4
In object orientated programming, a class of objects cans _____________ properties from another class of objects
Choose an answer
Utilize
Borrow
Inherit
Adopt
Previous
Skip
Next
Question # 5
An STL container can not be used to,
Choose an answer
hold objects of class employee.
store elements in a way that makes them quickly accessible
compile c++ programs
organize the way objects are stored in memory
Previous
Skip
Next
Question # 6
Friend class and friend function can be used as an alternate to each other
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 7
A class can be identified from a statement by ------------
Choose an answer
Noun
Pronoun
Verb
Adverb
Previous
Skip
Next
Question # 8
Inheritance is a way to
Choose an answer
organize data.
add features to existing classes without rewriting them
improve data-hiding and encapsulation.
Previous
Skip
Next
Question # 9
Which of the following operators can not be overloaded?
Choose an answer
Scope resolution operator ( :: )
Insertion operator ( << )
Extraction operator ( >> )
The relation operator ( > )
Previous
Skip
Next
Question # 10
Using encapsulation we can achieve
Choose an answer
Information hiding
Least interdependencies among modules
Implementation independence
All of given options
Previous
Skip
Next
Question # 11
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
Back