PHP QUIZ
1 .
If you call a method and it doesn’t exist it’ll cause a problem. To check the method which function will you use?

Correct Answer : Option (C)

is_callable()
  Show Answer
2 .
Which one of the following function should I use to find the parent class of a class?

Correct Answer : Option (A)

get_parent_class()
  Show Answer
3 .
Which class accepts a class name or an object reference and returns an array of interface name?

Correct Answer : Option (A)

class_implements()
  Show Answer
4 .
Object-oriented code tries to minimize dependencies by moving responsibility for handling tasks away from ___ and toward the objects in the system.

Correct Answer : Option (B)

client code
  Show Answer
5 .
________ code makes change easier because the impact of altering an implementation will be localized to the component being altered.

Correct Answer : Option (C)

Orthogonal
  Show Answer
6 .
Which one of the following is known as the key to object-oriented programming?

Correct Answer : Option (B)

Encapsulation
  Show Answer
7 .
UML stands for?

Correct Answer : Option (D)

unified modeling language
  Show Answer
8 .
In a class diagram the class is divided into three sections, what is displayed in the first section?

Correct Answer : Option (B)

Class Name
  Show Answer
9 .
______ are used in class diagrams to describe the way in which specific elements should be used.

Correct Answer : Option (B)

Constraints
  Show Answer
10 .
+ is the visibility code for?

Correct Answer : Option (A)

Public
  Show Answer