Object Oriented Programming - PART 2 « Previous Next » 1. Object Oriented Programming gives the concept of A. data abstraction,inheritance and polymorphism B. data abstraction,inheritance and array C. data abstraction,inheritance and I/O D. None of these [NET] Answer: A - data abstraction,inheritance and polymorphism 2. C++ allow multiple functions with in single class, Known by the number and type of arguments is called A. overloading B. constructor C. distructor D. struct [NET] Answer: A - overloading 3. C++ does not have A. constructor B. garbage collector I/O C. distructor D. struct [NET] Answer: B - garbage collector 4. A constructor and distructor of C++ simply A. insert object B. initialise and free object memory C. both (A) and (B) D. None of these [NET] Answer: C - both (A) and (B) 5. C++ provide A. flexibility in memory allocation B. a complete control on allocation and creation of objects C. both (A) and (B) D. None of these [NET] Answer: C - both (A) and (B) 6. The default constructor is a constructor that takes A. no arguments B. one arguments C. two arguments D. None of these [NET] Answer: A - no arguments 7. In C++ comment is represented as A. / B. // C. /* */ D. None of these [NET] Answer: B - // 8. In C++ "<<" operator is known as A. an insertion operator B. put to operator C. either (A) or (B) D. None of these [NET] Answer: C - either (A) or (B) 9. In C++ ">>" operator is known as A. an extraction operator B. a get from operator C. either (A) or (B) D. None of these [NET] Answer: C - either (A) or (B) 10. What is reference A. an operator B. used to rename an object C. a reference is an alias for an object D. None of these [NET] Answer: C - a reference is an alias for an object « Previous Next »
No comments:
Post a Comment