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-201 Final Term Exams Preparation Virtual University MCQs With Answers
Question # 1
"new" and "delete" keywords are _____________ in C++ language
Choose an answer
Built-in- Function
Operators
Memory Allocation Function
None of the given options
Previous
Skip
Next
Question # 2
Which kind of functions can access private member variables of a class?
Choose an answer
Friend functions of the class
Private member functions of the class
Public member functions of the class
Friend, private and public functions
Previous
Skip
Next
Question # 3
Which of the following is correct way to initialize a variable x of int type with value 10?
Choose an answer
int x ; x = 10;
int x = 10;
int x, x = 10;
x = 10;
Previous
Skip
Next
Question # 4
When a value is referred by a normal variable then it is known as,
Choose an answer
Direct Reference
Indirect Reference
Partial Reference
Proper Reference
Previous
Skip
Next
Question # 5
The prototype of friend functions must be written ____ the class and its definition must be written ____.
Choose an answer
inside, inside the class
inside, outside the class
outside, inside the class
outside, outside the class
Previous
Skip
Next
Question # 6
width() is member function of _____________.
Choose an answer
cin object
cout object
Both cin and cout object
None of the given option
Previous
Skip
Next
Question # 7
The return type of a function that do not return any value must be ________.
Choose an answer
float
int
void
double
Previous
Skip
Next
Question # 8
If it is required to copy an array to another array then.
Choose an answer
Both arrays must be of the same size and data type
Both arrays may be of different size
Both arrays may be of different data type
Both arrays may be of different size and type
Previous
Skip
Next
Question # 9
&& is -------------------- operator.
Choose an answer
An arithmetic
Logical
Relational
Unary
Previous
Skip
Next
Question # 10
The stream insertion and stream extraction operators are already overloaded for ______.
Choose an answer
User-defined data types
Built-in data types http://www.sstutor.com/cpp/stream1.htm
User-defined and built-in data types
None of the given options
Previous
Skip
Next
Back