Vidyalelo
PHP · all questions

Object Oriented Concept
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

141

Questions

6/8

Page

Pick an option on a question to see the right answer and solution.

Which one among the following means tight coupling?

Select an option to see the answer and solution.

UML stands for?

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?

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.

Select an option to see the answer and solution.

Which one of the following is displayed below the class name in the class diagrams?

Select an option to see the answer and solution.

+ is the visibility code for?

Select an option to see the answer and solution.

Which relationship is illustrated by a line that begins with an unfilled diamond?

Select an option to see the answer and solution.

If the diamond is filled it depicts which relationship?

Select an option to see the answer and solution.

Which one of the following statements is true about sequence diagrams?

Select an option to see the answer and solution.

A bidirectional relationship in class diagrams is described by________

Select an option to see the answer and solution.

# is the visibility code for?

Select an option to see the answer and solution.

Which one of the following is displayed in the third section of the class diagram?

Select an option to see the answer and solution.

Inheritance in class diagrams is depicted by________

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

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 ........ 

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.

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).

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.

Select an option to see the answer and solution.