Code Question Option A Option B Option C Option D Answer
CS201 What Is The Functionality Of The Following Statement? String Str[5] = {String(“Programming”) String(“Cs201”)}; Default Constructor Will Call For All Objects Of Array Parameterized Constructor Will Call For All Objects Of Array Parameterized Constructor Will Call For First 2 Objects And Default Constructor For Remaining Objects Default Constructor Will Call For First 3 Objects And Parameterized Constructor For Remaining Objects C
CS201 What Is The Functionality Of The Following Syntax To Delete An Array Of 5 Objects Named Arr Allocated Using New Operator? Delete Arr ; Deletes All The Objects Of Array Deletes One Object Of Array Do Not Delete Any Object Results Into Syntax Error C
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 D
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 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 D
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 What Will Be The Correct Syntax Of The Following Statement? Ptr Is A Constant Pointer To Integer. Const Int *Ptr ; Const *Int Ptr ; Int Const *Ptr ; Int *Const Ptr ; C
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 What Will Be The Output Of The Following Statement? Cout << Setbase(16) << 52 ; 52 34 61 74 B
CS201 When A Macro Takes Arguments Then It Is Called_____________________. Function Procedure Parameterized Macro Simple Macro C
CS201 When A Pointer Is Incremented It Actually Jumps The Number Of Memory Addresses According To Data Type 1 Byte Exactly 1 Bit Exactly A Pointer Variable Can Not Be Incremented A
CS201 When An Array Is Passed To A Function Then Default Way Of Passing This Array Is By Data By Reference By Value By Data Type B
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 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 When An Operator Function Is Defined As Member Function For A Binary Plus (+) Operator Then The Number Of Argument It Take Is/Are. Zero One Two N Arguments D
CS201 When Break Statement Is Encountered In Switch Statement It Stops The Entire Program Stops The Execution Of Current Statement Exits From Switch Statement None Of The Given Options 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 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 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 When We Define An Array Of Objects Then Destructor Will Call Once For Whole Array Destructor Will Call For Each Object Of The Array Destructor Will Never Call Depends On The Size Of Array B