Which keyword should be used in the line marked with "KEYWORD" instead of "self" to make this code work as intended?
Consider the following code. Which keyword should be used in the line marked with "KEYWORD" instead of "self" to make this code work as intended? abstract class Base { protected function _construct() { } public static function create() { return new self();// KEYWORD abstract function action(); class Item extends Base...
What is the output of the following code?
What is the output of the following code?A . 5B . 10C . 50D . Fatal errorView AnswerAnswer: C
What is the name of the header used to require HTTP authentication?
What is the name of the header used to require HTTP authentication?A . Authorization-RequiredB . WWW-AuthenticateC . HTTP-AuthenticateD . Authentication-RequiredE . HTTP-AuthView AnswerAnswer: B
Which of the following statements about Reflection is correct?
Which of the following statements about Reflection is correct?A . Reflection is an extension that can be disabledB . Reflection is a new extension present only in PHP 7.0+C . Reflection only allows to reflect on built-in classesD . Built-in classes can be reflected on command line using php --re...
What is the result of the following bitwise operation in PHP?
What is the result of the following bitwise operation in PHP? 1 ^ 2A . 1B . 3C . 2D . 4E . -1View AnswerAnswer: B
What SimpleXML function is used to parse a file?
What SimpleXML function is used to parse a file?A . simplexml_load_file()B . simplexml_load_string()C . load()D . loadFile()E . loadXML()F . None of the above.View AnswerAnswer: A
What method can be used to find the tag <any> via the DOM extension?
What method can be used to find the tag <any> via the DOM extension?A . getElementByld()B . getElementsByTagName()C . getElementsByTagNameNS()D . getElementByName()E . findTag()View AnswerAnswer: B
What is cached by an opcode cache?
What is cached by an opcode cache?A . Compiled PHP codeB . Native PHP extensionsC . Data sent to the clientD . Data received from the databaseView AnswerAnswer: A
Which DOM Element property provides a reference to the list ofthe element's children?
Which DOM Element property provides a reference to the list ofthe element's children?View AnswerAnswer: childNodes
Which of the following functions are used to escape data within the context of HTML? (Choose 2)
Which of the following functions are used to escape data within the context of HTML? (Choose 2)A . htmlentities()B . addslashes()C . stripslashes()D . strip_tags()E . htmlspecialchars()View AnswerAnswer: A, E