CS201
|
What Is The Sequence Of Event(S) When Allocating Memory Using New Operator?
|
Only Block Of Memory Is Allocated For Objects
|
Only Constructor Is Called For Objects
|
Memory Is Allocated First Before Calling Constructor
|
Constructor Is Called First Before Allocating Memory
|
C
|
CS201
|
Default Mechanism Of Function Calling In Case Of Array Is And In Case Of Variable Is .
|
Call By Value Call By Reference
|
Call By Referene Call By Reference
|
Call By Reference Call By Value
|
Call By Value Call By Value
|
C
|
CS201
|
A For Loop Usually Consist Of __________ Expressions.
|
1
|
2
|
3
|
4
|
C
|
CS201
|
The Data Members Of The Class Are Initialized At Creation Time
|
True
|
False
|
|
|
B
|
CS201
|
What Is The Sequence Of Event(S) When Deallocating Memory Using Delete Operator?
|
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
|
D
|
CS201
|
Setw Is A Parameterized Manipulator.
|
True
|
False
|
|
|
A
|
CS201
|
From The Following; Which One Is Used As An Assignment Operator?
|
Equal Sign ‘=’
|
Double Equal Sign ‘==’
|
Both Equal And Double Equal Sign
|
None Of The Given Options
|
A
|
CS201
|
The Second Parameter Of Operator Functions For << And >> Are Objects Of The Class For Which We Are Overloading These Operators.
|
True
|
False
|
|
|
A
|
CS201
|
The Inner Data Members Of The Object Are Constructed And Then The Object Itself.
|
True
|
False
|
|
|
A
|
CS201
|
I. Int Arr[2][3] = {4 8 9 2 1 6} ;
Ii. Int Arr[3][2] = {4 8 9 2 1 6} ;
Iii. Int Arr[][2] = {{4 8} {9 2} {1 6}} ;
Which Of The Following Option(S) Are Correct To Initialize A Two-Dimensional Array With 3 Rows And 2 Columns?
|
(Ii) Only
|
(Iii) Only
|
(Ii) And (Iii)
|
And (Iii)
|
A
|
CS201
|
In Overloading The Assignment (=) Operator Which Object Will Call The Operator Function?
|
Right Object Of The Assignment Operator
|
Left Object Of The Assignment Operator
|
Both Objects Will Call The Assignment Operator
|
No Object Will Call The Assignment Operator
|
C
|
CS201
|
Operator Overloading Is Quite Similar To Function Overloading.
|
True
|
False
|
|
|
A
|
CS201
|
The New Operator Returns A Type * Accepts A Parameter Of Type Size_T.
|
True
|
False
|
|
|
B
|
CS201
|
Stream Insertion ( << ) And Extraction Operators ( >> ) Are Always Implemented As __________ Functions.
|
Member
|
Non-Member
|
Inside
|
Out Side
|
B
|
CS201
|
This Is A Pointer Which Always Points To The Current Object.
|
True
|
False
|
|
|
A
|
CS201
|
Class Is A User Defined__________.
|
Data Type
|
Memory Referee
|
Value
|
None Of The Given Options.
|
A
|
CS201
|
The Size Of Int Data Type Is
|
1 Bytes
|
2 Bytes
|
3 Bytes
|
4 Bytes
|
D
|
CS201
|
We Can Create A New Operator Through Operator Overloading.
|
True
|
False
|
|
|
B
|
CS201
|
When We Are Using Const Keyword With A Variable X Then Initializing It At The Time Of Declaration Is
|
Must
|
Optional
|
Not Necessary
|
A Syntax Error
|
A
|
CS201
|
If The Statements
Int J K;
J = 123;
K= 234;
Int* Q * R;
Cout < < *Q < < < < * R ;
Are Executed What Will Be Displayed?
|
The Values Of J And K
|
The Addresses Of Q And R
|
The Addresses Of J And K
|
Garbage Values
|
D
|