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
Overloaded delete operator function takes parameter of void pointer and returns.
Choose an answer
void
void pointer
pointer to an object
pointer of type int
Previous
Skip
Next
Question # 2
What is the sequence of event(s) when allocating memory using new operator?
Choose an answer
Only block of memory is allocated for objects
Only constructor is called for objects
Memory is allocated first before calling constructor
Constructor is called first before allocating memory
Previous
Skip
Next
Question # 3
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 # 4
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 # 5
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 # 6
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 # 7
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
Question # 8
The endl and flush are _______
Choose an answer
Functions
Operators
Manipulators
Objects
Previous
Skip
Next
Question # 9
Structured Query Language is used for ______________
Choose an answer
Databases Management
Networks
Writing Operating System
none of the given options
Previous
Skip
Next
Question # 10
If there is a symbol (& sign) used with the variable name followed by data type then it refers to _____ and if & is being used with variable name then it refers to _____.
Choose an answer
Address of variable, reference variable
Reference variable, value of variable
Reference variable, address of variable
Address of variable, value of variable
Previous
Skip
Next
Question # 11
When an operator function is defined as member function for a binary Plus (+) operator then the number of argument it take is/are
Choose an answer
Zero
One
Two
N arguments
Previous
Skip
Next
Back