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
The first parameter of overloaded stream insertion operator is _________ where second parameter is _______ .
Choose an answer
input stream, object of class
object of class, output stream
output stream, object of class
object of class, input stream
Previous
Skip
Next
Question # 2
How many bytes will the pointer intPtr of type int move in the following statement? intPtr += 3 ;
Choose an answer
3 bytes
6 bytes
12 bytes
24 bytes
Previous
Skip
Next
Question # 3
Operator overloading can be performed through__________________.
Choose an answer
Classes
Function
Operators
Reference
Previous
Skip
Next
Question # 4
Array is a data structure which store
Choose an answer
Memory addresses
Variables
Data Type
Data
Previous
Skip
Next
Question # 5
What will be the correct syntax to assign an array named arr of 5 elements to a pointer ptr?
Choose an answer
*ptr = arr ;
ptr = arr ;
*ptr = arr[5] ;
ptr = arr[5] ;
Previous
Skip
Next
Question # 6
All A template function must have at least ---------- generic data type.
Choose an answer
Zero
One
Two
Three
Previous
Skip
Next
Question # 7
Disks are _______________ devices having access time of _________ milliseconds
Choose an answer
Electro-physical, 6
Electro-Mechanical, 4
Electro-physical, 5
Electro-Mechanical, 7
Previous
Skip
Next
Question # 8
What does (*this) represents?
Choose an answer
The current function of the class
The current pointer of the class
The current object of the class
A value of the data member
Previous
Skip
Next
Question # 9
Like member functions, ______ can also access the private data members of a class.
Choose an answer
Non-member functions
Friend functions
Any function outside class
None of the given options
Previous
Skip
Next
Question # 10
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 # 11
Which one of the following is the declaration of overloaded pre-increment operator implemented as member function?
Choose an answer
Class-name operator +()
Class-name operator +(int)
Class-name operator ++() ;
Class-name operator ++(int) ;
Previous
Skip
Next
Back