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 operator used for casting, in C, is standard ________ operator.
Choose an answer
none of the given options
cast
cost
const
Previous
Skip
Next
Question # 2
If we define an identifier with the statement #define PI 3.1415926 then during the execution of the program the value of PI __________.
Choose an answer
can not be replaced
None of the given options
Remain constant
can be changed by some operation
Previous
Skip
Next
Question # 3
Consider the following code segment. What will be the output of following code? Int addValue (int *a){ int b = (*a) + 2; return b ; } main () { int x =6 ; cout << x << “,” ; cout << addValue(&x) << “,” ; cout << x ; }.
Choose an answer
6,8,6
6,6,8
6,8,8
6,6,6
Previous
Skip
Next
Question # 4
New and Delete are also used with ___________ and data types as well.
Choose an answer
Class, Objects
Structures, Pointers
Both Class and structures
None of above
Previous
Skip
Next
Question # 5
Which situation would require the use of a non-member overloaded operator?
Choose an answer
The overloaded operator is an Assignment operator
The left most operand is an object of a class
The left operand is built-in data type
The operator returns a reference
Previous
Skip
Next
Question # 6
Operator overloading can be performed through__________________.
Choose an answer
Classes
Function
Operators
Reference
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
New operator is used to allocate memory from the free store during
Choose an answer
Compile Time
Run Time
Link Time
None of the given options
Previous
Skip
Next
Question # 9
The default value of a parameter can be provided inside the ________________
Choose an answer
function prototype
function definition
both function prototype or function definition
none of the given options
Previous
Skip
Next
Question # 10
Classes defined inside other classes are called ________ classes.
Choose an answer
looped
nested
overloaded
none of the given options
Previous
Skip
Next
Question # 11
Default mechanism of function calling in case of array is _____ and in case of variable is ___.
Choose an answer
Call by value, call by reference
Call by referene, call by reference
Call by reference, call by value
Call by value, call by value
Previous
Skip
Next
Back