Code Question Option A Option B Option C Option D Answer
CS201 Which Of The Following Option Is True About New Operator To Dynamically Allocate Memory To An Object? The New Operator Determines The Size Of An Object Allocates Memory To Object And Returns Pointer Of Valid Type Creates An Object And Calls The Constructor To Initialize The Object All Of The Given Options B
CS201 The New Operator Is Used To Declare Objects Or Variables Can Not Create And Initialize An Object Can Allocate An Appropriate Amount Of Memory For An Object Or Variable Returns An Address To An Object Or Variable C
CS201 In The Member Initializer List The Data Members Are Initialized From Left To Right From Right To Left In The Order In Which They Are Defined Within Class None Of The Given Options C
CS201 A Template Function Must Have At Least ---------- Generic Data Type 0 1 2 3 B
CS201 If Int Sum = 54; Then The Value Of The Following Statement Is Sum = Sum - 3 ; 52 50 51 57 B
CS201 Reusing The Variables In Program Helps To Save The Memory True False A
CS201 If We Do Not Mention Any Return_Value_Type With A Function It Will Return An Value. Int Void Double Float A
CS201 With User-Defined Data Type Variables (Objects) Self Assignment Can Produce __________. Syntax Error Logical Error Link Error Non Of The Given Options B
CS201 If The Memory In The Free Store Is Not Sufficient Enough To Fulfill The Request Malloc() Function Returns No Pointer. True False B
CS201 The Programs In Which We Allocate Static Memory Run Essentially On __________ Heap System Cache None Of The Given Options Stack D
CS201 What Does Stl Stand For? Source Template Library Standard Template Library Stream Template Library Standard Temporary Library B
CS201 Constructor Is Itself A __________ Of C++ And __________. Class Can Be Overloaded Function Cannot Be Overloaded Function Can Be Overloaded Object Can Not Be Initialized C
CS201 Like Member Functions Can Also Access The Private Data Members Of A Class. Non-Member Functions Friend Functions Any Function Outside Class None Of The Given Options B
CS201 There Is A Class Student Which One Of The Following Is A Valid Destructor For This Class. Student(); Student(Int); ~ Student(); ~ Student(Int); C
CS201 The Operator Function Of << And >> Operators Are Always The Member Function Of A Class. True False B
CS201 C Is A/An Language Low Level Object Based Object Oriented Function Oriented D
CS201 The Reference Data Types Are Used As Ordinary Variables Without Any Dereference Operator. True False A
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 Which Of The Following Statement Is Best Regarding Declaration Of Friend Function? Friend Function Must Be Declared After Public Keyword. Friend Function Must Be Declared After Private Keyword. Friend Function Must Be Declared At The Top Within Class Definition. It Can Be Declared Anywhere In Class As These Are Not Affected By The Public And Private Keywords. D
CS201 Which Of The Following Is The Correct C++ Syntax To Allocate Space Dynamically For An Array Of 10 Int? New Int(10) ; New Int[10] ; Int New(10) ; Int New[10]; B