php mcq questions with answers


                                
What is the method used to execute XPath queries in the SimpleXML extension?
A.xpathQuery()
B.xpath()
C.simpleXMLXpath()
D.query()
E.evaluate()
                                
Which 2.17of the following formats is used to describe web services?
A.WSDL
B.UDDI
C.SOAP
D.XLANG
                                
You want to test if a string matches a relatively complex patternWhich of the following functions can you use? (Choose 2)
A.match()
B.preg_match()
C.ereg()
D.regex()
                                
What is the result of the following code: class T { const A = 42 + 1; } echo T::A;
A.42
B.43
C.Parse error
                                
What does an object based on the Active Record pattern provide?
A.A way to actively control the application's workflow
B.A way to record the history of its changes
C.A way to effortlessly store its properties in a database