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 return type of the operator function for << operator is __________.
Choose an answer
class for which we overload operator
reference of ostream class (ostream&)
reference of istream class (istream&)
void
Previous
Skip
Next
Question # 2
Which of the following function is used to increase the size of already allocated memory chunk?
Choose an answer
malloc
calloc
realloc
free
Previous
Skip
Next
Question # 3
What is the sequence of event(s) when deallocating memory using delete operator?
Choose an answer
Only block of memory is deallocated for objects
Only destructor is called for objects
Memory is deallocated first before calling destructor
Destructor is called first before deallocating memory
Previous
Skip
Next
Question # 4
While calling function, the arguments are assigned to the parameters from _____________.
Choose an answer
left to right
right to left
no specific order is followed
none of the given options
Previous
Skip
Next
Question # 5
All preprocessor directives are started with the symbol______.
Choose an answer
*
+
@
#
Previous
Skip
Next
Question # 6
"setprecision" manipulator will set.
Choose an answer
The number of digits after the decimal point.
The number of digits before the decimal point
The number of digits in a number
None of the given options
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
The programs, in which we allocate static memory, run essentially on ________
Choose an answer
Heap
System Cache
None of the given options
Stack
Previous
Skip
Next
Question # 9
The number 544.53 must be stored in _____ data type.
Choose an answer
int
short
float (Sure)
char
Previous
Skip
Next
Question # 10
If there is more than one statement in the block of a for loop, which of the following must be placed at the beginning and the ending of the loop block?
Choose an answer
parentheses ( )
braces { }
brackets [ ]
arrows < >
Previous
Skip
Next
Question # 11
The normal source of cin object is
Choose an answer
File
Disk
Keyboard
RAM
Previous
Skip
Next
Back