Which methods can be used to overload object properties? (Choose 2)

Which methods can be used to overload object properties? (Choose 2)A . set(), get()B . _set(), _get()C . _put(), _receive(), _exists()D . set(), get(), isset()E . _isset(), _unset()View AnswerAnswer: B, E

February 15, 2018 No Comments READ MORE +

What information can be used to reliably determine the type of an uploaded file?

What information can be used to reliably determine the type of an uploaded file?A . MIME typeB . File name extensionC . Contents of the fileView AnswerAnswer: C

February 14, 2018 No Comments READ MORE +

What is a possible outcome?

Consider the following table data and PHP code. What is a possible outcome? Table data (table name "users" with primary key "id"): PHP code (assume the PDO connection is correctly established): $dsn = 'mysql:host=localhost;dbname=exam'; $user= 'username'; $pass='********'; $pdo = new PDO($dsn, $user, $pass); $cmd = "SELECT name, email FROM users...

February 12, 2018 No Comments READ MORE +

Given a JSON-encoded string, which code sample correctly indicates how to decode the string to native PHP values?

Given a JSON-encoded string, which code sample correctly indicates how to decode the string to native PHP values?A . $json = new Json($jsonValue); $value= $json->decode();B . $value= Json::decode($jsonValue);C . $value = json_decode($jsonValue);D . $value= Json::fromJson($jsonValue);View AnswerAnswer: C

February 12, 2018 No Comments READ MORE +

What is the output of the following code?

CORRECT TEXT What is the output of the following code? View AnswerAnswer: 1

February 9, 2018 1 Comment READ MORE +

Type hinting in PHP allows the identification of the following variable types: (Choose 2)

Type hinting in PHP allows the identification of the following variable types: (Choose 2)A . StringB . IntegerC . ArrayD . Any class or interface typeE . All of the aboveView AnswerAnswer: C, D

February 2, 2018 2 Comments READ MORE +

Which of the following is correct? (Choose 2)

Which of the following is correct? (Choose 2)A . A class can extend more than one class.B . A class can implement more than one class.C . A class can extend more than one interface.D . A class can implement more than one interface.E . An interface can extend more...

January 27, 2018 No Comments READ MORE +

Please provide the value of the $code variable in the following statement to set an HTTP status code that

Please provide the value of the $code variable in the following statement to set an HTTP status code that signifies that the requested resource was not found. http_response_code($code);View AnswerAnswer: 404, 404 Not Found

January 24, 2018 No Comments READ MORE +

What exception type will catch the error raised by the expression 2 / 0?

What exception type will catch the error raised by the expression 2 / 0?A . LogicExceptionB . RangeExceptionC . DivisionByZeroErrorD . ArithmeticErrorView AnswerAnswer: C

January 23, 2018 No Comments READ MORE +

Which of the following statements about SOAP is NOT true?

Which of the following statements about SOAP is NOT true?A . SOAP is also a request-/response-based protocol.B . SOAP can be transported using SMTP, HTTP and other protocols.C . SOAP requires developers to use WSDE . SOAP traffic via HTTP can be encrypted and compressed just like other HTTP requests.View...

January 22, 2018 No Comments READ MORE +