AdminLTELogo

MCQs List

Code Question Option A Option B Option C Option D Answer
CS304 When A Virtual Function Is Called By Referencing A Specific Object By Name And Using The Dot Member Selection Operator (E.G. Squareobject.Draw()) The Reference Is Resolved At Compile Time True False Na Na B
CS304 When A Virtual Function Is Called By Referencing A Specific Object By Name And Using The Dot Member Selection Operator (E.G. Squareobject.Draw()) The Reference Is Resolved At Compile Time True False Na Na A
CS304 When Is A Constructor Called? Each Time The Constructor Identifier Is Used In A Program Statement During The Instantiation Of A New Object During The Construction Of A New Class At The Beginning Of Any Program Execution B
CS304 When The Base Class And The Derived Class Have A Member Function With The Same Name You Must Be More Specific Which Function You Want To Call (Using __________) Scope Resolution Operator Dot Operator Null Operator Operator Overloading C
CS304 When We Write A Class Template The First Line Must Be Template < Class Class_Name> Template < Class Data_Type> Template < Class T > Class Class-Name() C
CS304 Which Is Not The Advantage Of Inheritance? Providing Class Growth Through Natural Selection Facilitating Class Libraries Avoiding The Rewriting Of Code Providing A Useful Conceptual Framework B
CS304 Which Of The Following Causes Run Time Binding? Declaring Object Of Abstract Class Declaring Pointer Of Abstract Class Declaring Overridden Methods As Non-Virtual None Of The Given D
CS304 Which Of The Following Features Of Oop Is Used To Derive A Class From Another? Encapsulation Polymorphism Data Hiding Inheritance D
CS304 Which Of The Following Is A Weak Relationship Between Two Objects? Inheritance Composition Aggregation None Of Given C
CS304 Which Of The Following Is An Integral Part Of An Object? State Behavior Unique Identity All Of The Given D
CS304 Which Of The Following Is Incorrect Line Regarding Function Template? Template<Class T> Template <Typename U> Class<Template T> Template < Class T Class U> C
CS304 Which Of The Following Is The Best Approach If It Is Required To Have More Than One Functions Having Exactly Same Functionality And Implemented On Different Data Types? Templates Overloading Data Hiding Encapsulation A
CS304 Which Of The Following Is The Way To Extract Common Behavior And Attributes From The Given Classes And Make A Separate Class Of Those Common Behaviors And Attributes? Generalization Sub-Typing Specialization Extension A
CS304 Which Of The Following Is/Are Advantage[S] Of Generic Programming? Reusability Writability Maintainability All Of Given D
CS304 Which Of The Following May Not Be An Integral Part Of An Object? State Behavior Protected Data Members All Of Given C
CS304 Which Of The Following Operator(S) Take(S) One Or No Argument If Overloaded? ++ * % All Of The Given Choices A
CS304 Which Of The Following Operators Always Takes No Argument If Overloaded? / - + ++ D
CS304 Which Of The Following Operators Can Not Be Overloaded? Scope Resolution Operator ( :: ) Insertion Operator ( << ) Extraction Operator ( >> ) The Relation Operator ( > ) A
CS304 Which Of These Are Examples Of Error Handling Techniques ? Abnormal Termination Graceful Termination Return The Illegal All Of The Given D
CS304 Which One Is A Class Association Simple Association Inheritance Composition Aggregation B