Top 350+ Solved Advance PHP MCQ Questions Answer
Q. Notice that the destruct function starts with-------Sol:
a. __Construct()
b. ___()
c. oop
d. class
Q. -----function that is automatically called when you create an object from a class, and a ---------function that is automatically called at the end of the scriptSol:
a. __Construct() & __destruct()
b. ___Destruct()& input()
c. oop& procedure
d. class & object
Q. ------stands for Object-Oriented Programming.Sol:
a. __Construct()
b. ___Destruct()
c. OOP
d. class
Q. -----and methods can have access modifiers which control where they can be accessedSol:
a. Properties
b. Destruct
c. OOP
d. class
Q. -----the property or method can be accessed from everywhere. This is defaultSol:
a. Properties
b. public
c. protected
d. private
Q. ------the property or method can be accessed within the class and by classes derivedfrom that classSol:
a. Properties
b. public
c. protected
d. private
Q. ------the property or method can ONLY be accessed within the classSol:
a. Properties
b. public
c. protected
d. private
Q. --------in OOP When a class derives from another class.Sol:
a. inheritance
b. public
c. protected
d. private
Q. The-----will inherit all the public and protected properties and methods from the parentclass. In addition, it can have its own properties and methods.Sol:
a. inheritance
b. child class
c. protected
d. private
Q. An inherited class is defined by using the------keywordSol:
a. inheritance
b. public
c. extends
d. private
Q. The long form of WSDL is-----------------
a. Simple Object Access Protocol
b. Universal Description, Discovery and Integration
c. Web Services Description Language
d. none of these
Q. following are the characteristics of web services
a. XML-based
b. Coarse-grained
c. Loosely coupled
d. all of above
Q. In the coarse-grained operation, a few objects hold a lot of related data
a. yes
b. no
c. can not say
d. none of these
Q. It wrapsone or more fine-grained services together into a coarse-grained service
a. yes
b. no
c. can not say
d. none of these
Q. Synchronous Web services are invoked over existing Web protocols by a clientwho waitsfor a response.
a. yes
b. no
c. can not say
d. none of these