0% found this document useful (0 votes)
132 views

MCQ With Answers Chapter I: Principles of Object-Oriented Programming

The document contains a multiple choice quiz about object-oriented programming concepts. It asks questions about which languages are procedural vs object-oriented, benefits of OOP like inheritance and polymorphism, and concepts like encapsulation, abstraction, and inheritance. It also lists answers to the 10 questions.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
132 views

MCQ With Answers Chapter I: Principles of Object-Oriented Programming

The document contains a multiple choice quiz about object-oriented programming concepts. It asks questions about which languages are procedural vs object-oriented, benefits of OOP like inheritance and polymorphism, and concepts like encapsulation, abstraction, and inheritance. It also lists answers to the 10 questions.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

MCQ with answers Chapter I: Principles of Object-Oriented Programming

1. Which of the following languages is not a procedure-oriented programming language? a) ALGOL b) COBOL c) FORTRAN d) None of the above 2. Which of the following programming approach used functions as a key concept to perform action-oriented tasks? a) Structured programming b) Modular programming c) Procedure-oriented programming d) Object-oriented programming 3. Identify the drawback of using procedure-oriented programming, if any: a) Data is hidden from external functions b) New functions can be added whenever necessary c) Does not reflect real world problems d) All of the above 4. Which is not associated with Object-oriented programming? a) Data abstraction b) Automatic initialization c) Dynamic binding d) None 5. The term operator overloading in C++ refers to: a) Inheritance b) Message passing c) Polymorphism d) None 6. Which one of the following OOP concepts enables reusability of components? a) Inheritance b) Encapsulation c) Polymorphism d) All of the above 7. The concept of hierarchical classification is related to: a) Abstraction b) Inheritance c) Function overloading d) None

8. Object-based programming languages do not support: i. Inheritance ii. Dynamic binding iii. Encapsulation iv. All of the above a) Both i and ii b) iii only c) iv only d) i, ii, and iii 9. C++ does not support i. Genericity iii. Garbage collection a) i only b) ii only c) iii only d) ii, iii and iv 10. Which of the following is an Object-oriented programming language? i. Smalltalk ii. Object Pascal iii. Java iv. All of the above a) Both ii and iii b) i only c) iii only d) iv only -------------------------------------------------------------------------------Answers -------------------------------------------------------------------------------1. d) None of the above 2. c) Procedure-oriented programming 3. c) Does not reflect real world problems 4. d) None 5. c) Polymorphism 6. a) Inheritance 7. b) Inheritance 8. a) Both i and ii 9. a) i only 10. d) iv only ---------------------------ii. Early binding iv. Multiple Inheritance

You might also like