CS201
|
The Variables Having A Name Type And Size Are Just Like Empty Boxes.
|
True
|
False
|
|
|
A
|
CS201
|
The Sizeof Operator Is Used To Determine The Size Of
|
Data
|
Variable
|
Data Type
|
None Of The Given
|
D
|
CS201
|
The Endl And Flush Are
|
Functions
|
Operators
|
Manipulators
|
Objects
|
C
|
CS201
|
When Ever Dynamic Memory Allocation Is Made In C/C++ It Is Freed__________.
|
Explicitly
|
Implicitly
|
Both Explicitly And Implicitly
|
None Of The Given Options
|
A
|
CS201
|
There Are Mainly ___________ Types Of Software
|
2
|
3
|
4
|
5
|
A
|
CS201
|
We Can Also Create An Array Of User Define Data Type.
|
True
|
False
|
|
|
A
|
CS201
|
When We Do Dynamic Memory Allocation In The Constructor Of A Class Then It Is Necessary To Provide A Destructor.
|
True
|
False
|
|
|
A
|
CS201
|
Copy Constructor Becomes Necessary While Dealing With Allocation In The Class.
|
Dynamic Memory
|
Static Memory
|
Both Dynamic And Static Memory
|
None Of The Given Options
|
A
|
CS201
|
Char Name [] = “Hello World” ; In The Above Statement A Memory Of ___________ Characters Will Be Allocated
|
13
|
12
|
11
|
10
|
C
|
CS201
|
Which Of The Following Is True While Overloading Operators?
|
Precedence Of An Operator Can Be Changed
|
The Parity (Number Of Operands) Can Be Changed
|
No New Operators Can Be Created
|
Associativity Of An Operator Can Be Changed
|
A
|
CS201
|
Which Value Is Returned By The Destructor Of A Class?
|
A Pointer To The Class.
|
An Object Of The Class.
|
A Status Code Determining Whether The Class Was Destructed Correctly
|
Destructors Do Not Return A Value.
|
D
|
CS201
|
If Text Is A Pointer Of Class String Then What Is Meant By The Following Statement? Text = New String [5];
|
Creates An Array Of 5 String Objects Statically
|
Creates An Array Of 5 String Objects Dynamically
|
Creates An Array Of Pointers To String
|
Creates A String Object
|
B
|
CS201
|
If Overloaded Plus Operator Is Implemented As Non-Member Function Then Which Of The Following Statement Will Be True For The Statement Given Below?
Obj3 = Obj1 + Obj2 ;
|
Obj2 Will Be Passed As An Argument To + Operator Whereas Obj2 Will Drive The + Operator
|
Obj1 Will Drive The + Operator Whereas Obj2 Will Be Passed As An Argument To + Operator
|
Both Objects (Obj1 Obj2) Will Be Passed As Arguments To The + Operator
|
Any Of The Objects (Obj1 Obj2) Can Drive The + Operator
|
A
|
CS201
|
If The Break Statement Is Missed In Switch Statement Then
|
The Compiler Will Give Error
|
This May Cause A Logical Error
|
No Effect On Program
|
Program Stops Its Execution
|
C
|
CS201
|
The Prototype Of Friend Functions Must Be Written The Class And Its Definition Must Be Written
|
Inside Inside The Class
|
Inside Outside The Class
|
Outside Inside The Class
|
Outside Outside The Class
|
B
|
CS201
|
In If Structure The Block Of Statements Is Executed Only
|
Type Letters
|
When It Contain Arithmetic Operators
|
When It Contain Logical Operators
|
When The Condition Is True
|
D
|
CS201
|
Consider The Following Code Segment: Class M {Friend Int Operator!(Const M &);}; Let Assume If S Is An Object Of The Class Then Function Is Implemented As __________
|
Member Function
|
Non-Member Function
|
Binary Operator Function
|
None Of The Given Options
|
B
|
CS201
|
There Is A Pointer Variable Named Ptr Of Type Int Then Address Of Which Type Of Variable The Ptr Will Store In It?
|
Variable Of Type Char
|
Variable Of Type Short
|
Variable Of Type Int
|
Variable Of Type Double
|
C
|
CS201
|
It Is Possible To Define A Class Within Another Class.
|
True
|
False
|
|
|
A
|
CS201
|
We Cannot Do Arithmetic With References Like Pointers.
|
True
|
False
|
|
|
A
|