Which one among the following means tight coupling?
A. Code Duplication
B. Inheritance
C. Encapsulation
D. Polymorphism
Select an option to see the answer and solution.
UML stands for?
A. unified mailing language
B. unified modeling logo
C. undefined modeling language
D. unified modeling language
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
_________ are used in class diagrams to describe the way in which specific elements should be used.
A. Attributes
B. Constraints
C. Constants
D. Class Names
Select an option to see the answer and solution.
Which one of the following is displayed below the class name in the class diagrams?
A. Functions
B. Methods
C. Attributes
D. Constraints
Select an option to see the answer and solution.
+ is the visibility code for?
A. Public
B. Private
C. Protected
D. Friendly
Select an option to see the answer and solution.
Which relationship is illustrated by a line that begins with an unfilled diamond?
A. Composition
B. Abstraction
C. Aggregation
D. Inheritance
Select an option to see the answer and solution.
If the diamond is filled it depicts which relationship?
A. Strong Aggregation
B. Composition
C. Abstraction
D. Inheritance
Select an option to see the answer and solution.
Which one of the following statements is true about sequence diagrams?
A. A sequence diagram is class based
B. A sequence diagram presents the participants of a system from right to left
C. The vertical broken lines represent the lifetime of the class in the system
D. A sequence diagram is object based
Select an option to see the answer and solution.
A bidirectional relationship in class diagrams is described by________
A. double-headed arrow
B. visibility symbols
C. single-headed arrow
D. double diamond
Select an option to see the answer and solution.
# is the visibility code for?
A. Private
B. Friendly
C. Protected
D. Static
Select an option to see the answer and solution.
Which one of the following is displayed in the third section of the class diagram?
A. Operations
B. Inheritance
C. Abstraction
D. Coupling
Select an option to see the answer and solution.
Inheritance in class diagrams is depicted by________
A. single-headed empty arrow
B. single-headed filled arrow
C. double-headed empty arrow
D. double-headed filled arrow
Select an option to see the answer and solution.
A valid class name starts with a ......., followed by any number of letters, numbers, or underscores.
1. Number
2. Letter
3. Period
4. Underscore
A. Option 1 and 4
B. Option 2 and 3
C. Option 3 and 4
D. Option 1 and 3
Select an option to see the answer and solution.
PHP makes it possible to automatically execute code when a new instance of a class is created, using a special class method called a ........
A. destructor
B. constructor
C. friend
D. initial
Select an option to see the answer and solution.
Once a class has been defined, objects can be created from the class with the ....... keyword.
A. new object
B. construct
C. new
D. both A and C
Select an option to see the answer and solution.
The visibility of a property or method can be defined by prefixing the declaration with the keywords public, protected or private. Class members declared public can be accessed everywhere. Members declared protected can be accessed only within the class itself and by inherited classes. Members declared as private are not accessible.
Select an option to see the answer and solution.
All PHP classes come with a default constructor that takes .... arguments.
Select an option to see the answer and solution.
You access an object’s properties and methods using the ....... operator ( a hyphen followed by a greater than symbol).
A. >>
B. =>
C. ->
D. none of above
Select an option to see the answer and solution.
When you extend a class, the subclass inherits all of the ........ methods from the parent class.
A. Public
B. private
C. protected
D. both A and C
Select an option to see the answer and solution.