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
Which operator can not be overloaded?
Choose an answer
The relation operator ( >= )
Assignment operator ( = )
Script operator ( [] )
Conditional operator (? : )
Previous
Skip
Next
Question # 3
By default the vector data items are initialized to ____
Choose an answer
0
0.0
1
null
Previous
Skip
Next
Question # 4
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 # 5
----------------- follow try block to catch the object thrown
Choose an answer
catch block
throw block
main block
non of the given
Previous
Skip
Next
Question # 6
Identify the correct way of declaring an object of user defined template class A for char type members?
Choose an answer
A< char > obj;
A obj;
A obj
Obj
A;
Previous
Skip
Next
Question # 7
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
Question # 8
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 # 9
When a variable is define as static in a class then all object of this class,
Choose an answer
Have different copies of this variable
Have same copy of this variable
Can not access this variable
None of given
Previous
Skip
Next
Question # 10
What problem(s) may occur when we copy objects without using deep copy constructor?
Choose an answer
Dangling pointe
Memory Leakage
All of the given
System crash
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