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
Unary operator implemented as member function takes ____ arguments whereas non-member function takes _____ arguments.
Choose an answer
One, zero
Zero, one
One, two
Two, one
Previous
Skip
Next
Question # 2
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 # 3
The normal source of cin object is
Choose an answer
File
Disk
Keyboard
RAM
Previous
Skip
Next
Question # 4
In if structure the block of statements is executed only.
Choose an answer
When the condition is false
When it contain arithmetic operators
When it contain logical operators
When the condition is true
Previous
Skip
Next
Question # 5
Which of the following is NOT a preprocessor directive?
Choose an answer
#error
#define
#line
#ndefine
Previous
Skip
Next
Question # 6
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 # 7
&& is -------------------- operator.
Choose an answer
An arithmetic
Logical
Relational
Unary
Previous
Skip
Next
Question # 8
Which of the following function calling mechanism is true for the function prototype given below?
Choose an answer
Call by value
Call by reference using pointer
Call by reference using reference variable
None of the given options
Previous
Skip
Next
Question # 9
The endl and flush are _______
Choose an answer
Functions
Operators
Manipulators
Objects
Previous
Skip
Next
Question # 10
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 # 11
When ever dynamic memory allocation is made in C/C++, it is freed_____________.
Choose an answer
Explicitly
Implicitly
Both explicitly and implicitly
None of the given options
Previous
Skip
Next
Back