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
When the base class and the derived class have a member function with the same name, you must be more specific which function you want to call (using ___________).
Choose an answer
scope resolution operator
dot operator
null operator
Operator overloading
Previous
Skip
Next
Question # 2
Compiler performs ________ type checking to diagnose type errors,
Choose an answer
Static
Dynamic
Bound
Unbound
Previous
Skip
Next
Question # 3
Non Template Friend functions of a class are friends of ________instance/s of
Choose an answer
All
One specific
All instances of one date type
None of the given options
Previous
Skip
Next
Question # 4
Algorithms can only be implemented using STL containers.
Choose an answer
True
False
Not Sure
Previous
Skip
Next
Question # 5
________ 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 # 6
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 # 7
Which sentence clearly defines an object?
Choose an answer
one instance of a class
another word for a class.
a class with static methods.
a method that accesses class attributes.
Previous
Skip
Next
Question # 8
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 # 9
________ and ______ methods may not be declared abstract.
Choose an answer
private,static
private,public
static,public
None of the given
Previous
Skip
Next
Question # 10
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 # 11
Template functions use _________ than ordinary functions
Choose an answer
Greater Memory
Lesser Memory
Equal Memory
None of the given options
Previous
Skip
Next
Back