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
__________, which means if A declares B as its friend it does NOT mean that A can access private data of B. It only means that B can access all data of A.
Choose an answer
Friendship is one way only
Friendship is two way only
NO Friendship between classes
Any kind of friendship
Previous
Skip
Next
Question # 2
An overloaded operator always requires one less argument than its number of operands.
Choose an answer
True
False
Not sure
Previous
Skip
Next
Question # 3
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 # 4
What a derived class can add?
Choose an answer
New data members
New member functions and New friend functions
New constructors and destructor
All of given
Previous
Skip
Next
Question # 5
In case of multiple inheritance a derived class inherits,
Choose an answer
Only the public member functions of its base classes
Only the public data members of its base classes
Both public data members and member functions of all its base classes
Data members and member functions of any two base classes
Previous
Skip
Next
Question # 6
A template provides a convenient way to make a family of
Choose an answer
variables and data members
functions and classes
classes and exceptions
programs and algorithms
Previous
Skip
Next
Question # 7
this pointers are not accessible for static member functions
Choose an answer
true
false
not sure
Previous
Skip
Next
Question # 8
Algorithms can only be implemented using STL containers.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 9
Template functions use _________ than ordinary functions.
Choose an answer
Greater Memory
Lesser Memory
Equal Memory
None of the given options
Previous
Skip
Next
Question # 10
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 # 11
Compiler performs ________ type checking to diagnose type errors,
Choose an answer
Static
Dynamic
Bound
Unbound
Previous
Skip
Next
Back