CS201
|
Which One Of The Following Is The Declaration Of Overloaded Pre-Increment Operator Implemented As Member Function?
|
Class-Name Operator +() ;
|
Class-Name Operator +(Int) ;
|
Class-Name Operator ++() ;
|
Class-Name Operator ++(Int) ;
|
C
|
CS201
|
The Stream Insertion And Extraction Operators Are Not Already Overloaded For
|
Built-In Data Types
|
User-Defined Data Types
|
Both Built-In And User-Defined Types
|
None Of The Given Options
|
B
|
CS201
|
Delete Operator Is Used To Return Memory To Free Store Which Is Allocated By The New Operator
|
True
|
False
|
|
|
A
|
CS201
|
New And Delete Are Whereas Malloc And Free Are .
|
Functions Operators
|
Classes Operators
|
Operators Functions
|
Operators Classes
|
C
|
CS201
|
Pointers Store The __________
|
Value Of A Variable
|
Memory Address
|
Characters
|
None Of The Given
|
B
|
CS201
|
When An Object Of A Class Is Defined Inside An Other Class Then
|
Constructor Of Enclosing Class Will Be Called First
|
Constructor Of Inner Object Will Be Called First
|
Constructor And Destructor Will Be Called Simultaneously
|
None Of The Given Options
|
B
|
CS201
|
Set Precision Is A Parameter Less Manipulator.
|
True
|
False
|
|
|
A
|
CS201
|
Which Of The Following Is The Correct Way To Assign An Integer Value 5 To Element Of A Matrix Say ‘M’ At Second Row And Third Column?
|
M[2][3] = 5 ; // [Row][Col]
|
M[3][2] = 5 ;
|
M[1][2] = 5 ;
|
M[2][3] = ‘5’;
|
A
|
CS201
|
The Declarator Of Minus(-) Member Operator Function Is
|
Class-Name Operator - (Class-Name Rhs)
|
Operator Class-Name - ( )
|
Operator Class-Name - ( Rhs)
|
Class-Name Operator - ( )
|
A
|
CS201
|
When X = 7; Then The Expression X%= 2; Will Calculate The Value Of X As
|
1
|
3
|
7
|
2
|
A
|
CS201
|
Which Of The Following Operators Can Not Be Overloaded?
|
New
|
Delete
|
+=
|
Sizeof
|
D
|
CS201
|
What Will Be The Correct Syntax To Assign An Array Named Arr Of 5 Elements To A Pointer Ptr?
|
*Ptr = Arr ;
|
Ptr = Arr ;
|
*Ptr = Arr[5] ;
|
Ptr = Arr[5] ;
|
A
|
CS201
|
The New Operator Returns A Void * Accepts A Parameter Of Type Size_T.
|
True
|
False
|
|
|
A
|
CS201
|
When The Compiler Overloads The Assignment (=) Operator By Default Then __________
|
Compiler Does Member Wise Assignment.
|
Compiler Does Not Allow Default Overload Of Assignment (=) Operator
|
Member Of The Class Are Not Assigned Properly
|
None Of The Given Options
|
C
|
CS201
|
By Overloading New And Delete Operators Only Allocation And Deallocation Part Can Be Overridden.
|
True
|
False
|
|
|
A
|
CS201
|
When An Array Of Object Is Created Dynamically Then There Is No Way To Provide Parameterized Constructors For Array Of Objects.
|
True
|
False
|
|
|
A
|
CS201
|
The Member Functions Of A Class Occupy Region In Memory For Object(S) Of Class.
|
Separate Each
|
Common All
|
Different Each
|
Different All
|
A
|
CS201
|
In Functions That Return Reference Use __________Variables.
|
Local
|
Global
|
Global Or Static
|
None Of The Given Option
|
C
|
CS201
|
The Function Will Return A Reference To The Global Variable That Exists Throughout The Program And Thus There Will Be No Danger Of __________.
|
Garbage Collection
|
Dangling Reference.
|
Wastage Of Memory
|
System Crash
|
B
|
CS201
|
A Function Declaration Has The Same Relationship To A Function Definition That
|
A Class Definition Has To An Object Definition
|
An Object Declaration Has To An Object
|
A Variable Has To A Variable Declaration
|
A Variable Declaration Has To The Variable Itself
|
A
|