Vous êtes sur la page 1sur 2

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) b) c) d) Inheritance Message passing Polymorphism 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) b) c) d) Abstraction Inheritance Function overloading 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 ii. Early binding iii. Garbage collection iv. Multiple Inheritance 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

Vous aimerez peut-être aussi