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
Assignment operator is -------------------------associative.
Choose an answer
right
left
binary
unary
Previous
Skip
Next
Question # 2
What purpose do classes serve?
Choose an answer
Data encapsulation
Providing a convenient way of modeling real-world objects
Simplifying code reuse
All of the given options
Previous
Skip
Next
Question # 3
Friend functions are _____ of a class
Choose an answer
Member functions
Public member functions
Private member functions
Non-member functions
Previous
Skip
Next
Question # 4
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 # 5
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 # 6
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 # 7
The normal source of cin object is
Choose an answer
File
Disk
Keyboard
RAM
Previous
Skip
Next
Question # 8
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
Question # 9
"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 # 10
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 # 11
new and delete are _____ whereas malloc and free are _____.
Choose an answer
Functions, operators
Classes, operators
Operators, functions
Operators, classes
Previous
Skip
Next
Back