ExamVeda
Login
Home
11
# is the visibility code for?
Discuss
Answer & Solution
Answer: Option C
Solution:
Available to the current class and its subclasses only.
12
Which one of the following is displayed in the third section of the class diagram?
Discuss
Answer & Solution
Answer: Option A
Solution:
Operations describe methods, or more properly, they describe the calls that can be made on an instance of a class.
13
Inheritance in class diagrams is depicted by________
Discuss
Answer & Solution
Answer: Option A
Solution:
The UML describes the inheritance relationship as generalization. This relationship is signified by a line leading from the subclass to its parent. The line is tipped with an empty closed arrow.
14
A valid class name starts with a ......., followed by any number of letters, numbers, or underscores.
1. Number
2. Letter
3. Period
4. Underscore
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
15
PHP makes it possible to automatically execute code when a new instance of a class is created, using a special class method called a ........ 
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
16
Once a class has been defined, objects can be created from the class with the ....... keyword.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
17
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.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
18
All PHP classes come with a default constructor that takes .... arguments.
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
19
You access an object’s properties and methods using the ....... operator ( a hyphen followed by a greater than symbol).
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
20
When you extend a class, the subclass inherits all of the ........ methods from the parent class.
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board