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
Suppose that the Test class does not have an overloaded assignment operator. What happens when an assignment a=b; is given for two Test objects a and b?
Choose an answer
The automatic assignment operator is used
The copy constructor is used
Compiler error
Run-time error
Previous
Skip
Next
Question # 2
The sub-object’s life is not dependant on the life of master class in __________.
Choose an answer
Separation
Composition
Aggregation
Previous
Skip
Next
Question # 3
The technique in which we visualize our programming problems according to real life’s problems is called ----------------
Choose an answer
structured programming
object oriented Programming
procedural programming
non of the given
Previous
Skip
Next
Question # 4
________ is/are used to access information hidden within an object?
Choose an answer
Interface
Private data members
Private member functions
Both public and private members
Previous
Skip
Next
Question # 5
A range is often supplied to an algorithm by two _______ values.
Choose an answer
italic
iteration
iterator
None of given
Previous
Skip
Next
Question # 6
Default constructor is such constructor which either has no ---------or if it has some parameters these have -------- values
Choose an answer
Parameter, temporary
Null, Parameter
Parameter, default
non of the given
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
Which operator can not be overloaded?
Choose an answer
The relation operator ( >= )
Assignment operator ( = )
Script operator ( [] )
Conditional operator (? : )
Previous
Skip
Next
Question # 9
Two important STL associative containers are _______ and _______.
Choose an answer
set,map
sequence,mapping
setmet,multipule
sit,mat
Previous
Skip
Next
Question # 10
Like template functions, a class template may not handle all the types successfully.
Choose an answer
True
True
Not Sure
Previous
Skip
Next
Question # 11
Default constructor is such constructor which either has no ---------or if it has some parameters these have ----- --- values
Choose an answer
Parameter, temporary
Null, Parameter
Parameter, default
None of the given
Previous
Skip
Next
Back