PHP

PHP

Object and Design has 20 Questions
It will be useful for anyone learning PHP Basics and Fundamentals.

1. Object-oriented code tries to minimize dependencies by moving responsibility for handling tasks away from ___ and toward the objects in the system.


server code
client code
machine code
procedural code
Placing a static method for generating ___ objects in the ___ class is convenient.

child parent
parent child
final static
static final
The extent to which proximate procedures are related to one another is known as...

Coupling
Balancing
Cohesion
Co-relation
___ 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.

Loose Coupling
Tight Coupling
Co-relation
Balancing
___ code makes change easier because the impact of altering an implementation will be localized to the component being altered.

Orthogonal
Cohesion
Coupling
Balancing
Polymorphism is also know as...

switch
overact
encapsulation
class switching
Which one of the following is know as the key to object-oriented programming ?

Polymorphism
Encapsulation
Data Abstraction
Orthogonality
Which one among the following means tight coupling ?

Code Duplication
Inheritance
Encapsulation
Polymorphism
UML stands for?

unified mailing language
unified modeling logo
undefined modeling language
unified modeling language
In a class diagram the class is divided into three sections, what is displayed in the first section?

Class Attributes
Class Declaration
Class Name
Class Functions
It will be useful for anyone learning PHP Basics and Fundamentals.

1. ___ are used in class diagrams to describe the way in which specific elements should be used.


Attributes
Constraints
Constants
Class Names
Which one of the following is displayed below the class name in the class diagrams?

Functions
Methods
Attributes
Constraints
+ is the visibility code for?

Public
Private
Protected
Friendly
Which relationship is illustrated by a line that begins with an unfilled diamond?

Composition
Abstraction
Aggregation
Inheritance
If the diamond is filled it depicts which relationship?

Strong Aggregation
Composition
Abstraction
Inheritance
Which one of the following statements is true about sequence diagrams?

A sequence diagram is class based
A sequence diagram presents the participants of a system from right to left
The vertical broken lines represent the lifetime of the class in the system.
A sequence diagram is object based
A bidirectional relationship in class diagrams is described by..

double-headed arrow
visibility symbols
single-headed arrow
double diamond
# is the visibility code for?

Private
Friendly
Protected
Static
Which one of the following is displayed in the third section of the class diagram?

Operations
Inheritance
Abstraction
Coupling
Inheritance in class diagrams is depicted by..

single-headed empty arrow
single-headed filled arrow
double-headed empty arrow
double-headed filled arrow