MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
In a class diagram the class is divided into three sections, what is displayed in the first section? |
| A. | Class Attributes |
| B. | Class Declaration |
| C. | Class Name |
| D. | Class Functions |
| Answer» D. Class Functions | |
| 2. |
UML stands for? |
| A. | unified mailing language |
| B. | unified modeling logo |
| C. | undefined modeling language |
| D. | unified modeling language |
| Answer» E. | |
| 3. |
Which one among the following means tight coupling? |
| A. | Code Duplication |
| B. | Inheritance |
| C. | Encapsulation |
| D. | Polymorphism |
| Answer» B. Inheritance | |
| 4. |
Which one of the following is known as the key to object-oriented programming? |
| A. | Polymorphism |
| B. | Encapsulation |
| C. | Data Abstraction |
| D. | Orthogonality |
| Answer» C. Data Abstraction | |
| 5. |
Polymorphism is also known as______ |
| A. | switch |
| B. | overact |
| C. | encapsulation |
| D. | class switching |
| Answer» E. | |
| 6. |
________ code makes change easier because the impact of altering an implementation will be localized to the component being altered. |
| A. | Orthogonal |
| B. | Cohesion |
| C. | Coupling |
| D. | Balancing |
| Answer» B. Cohesion | |
| 7. |
______ occurs when discrete parts of a system’s code are tightly bound up with one another so that a change in one part necessitates changes in the others. |
| A. | Loose Coupling |
| B. | Tight Coupling |
| C. | Co-relation |
| D. | Balancing |
| Answer» C. Co-relation | |
| 8. |
The extent to which proximate procedures are related to one another is known as ________ |
| A. | Coupling |
| B. | Balancing |
| C. | Cohesion |
| D. | Co-relation |
| Answer» D. Co-relation | |
| 9. |
Placing a static method for generating ________ objects in the ____________ class is convenient. |
| A. | child parent |
| B. | parent child |
| C. | final static |
| D. | static final |
| Answer» B. parent child | |
| 10. |
Object-oriented code tries to minimize dependencies by moving responsibility for handling tasks away from ___ and toward the objects in the system. |
| A. | server code |
| B. | client code |
| C. | machine code |
| D. | procedural code |
| Answer» C. machine code | |