Object Oriented Concept - Study Mode

[#76] Which one of the following statements is true about sequence diagrams?
Correct Answer

(D) A sequence diagram is object based

Explanation

Solution: A sequence diagram is object based rather than class based. It is used to model a process in a system step by step.

[#77] A bidirectional relationship in class diagrams is described by________
Correct Answer

(A) double-headed arrow

Explanation

Solution: A unidirectional association has single-headed arrow.

[#78] Which keyword must be added before $first variable on the third line of the above question to make $second and $first as distinct objects in PHP 5?
Correct Answer

(B) clone

Explanation

Solution: Clone operates on an object instance, producing a by-value copy.

[#79] ______clone() is run on the _______ object.
Correct Answer

(D) copied

Explanation

Solution: __clone() is run on the copied object and not the original.

[#80] Which method is invoked when an undefined property is accessed ?
Correct Answer

(A) __get()