The following form is loaded in a browser and submitted, with the checkbox activated:
<form method="post">
<input type="checkbox" name="accept">
<form>
In the server-side PHP code to deal with the form data, what is the value of
$_POST['accept']?
Answer : D
Which methods can be used to overload object properties? (Choose 2)
Answer : B,E
What super-global should be used to access information about uploaded files via a POST request?
Answer : D
What is the function of backtick (`) characters in PHP?
Answer : D
Which constant must be passed as the second argument to htmlentities() to convert single quotes (') to HTML entities?
Answer : C
You want to run the following PHP 4 code with PHP 5. In the following example, which access modifier in PHP 5 is equivalent to "var"? class Test { var $tester;
Answer : C
Which of the listed changes would you make to the following PHP 4 code in order to make it most compliant with PHP 5? (Choose 2)
<?php
class Car {
var $model;
function Car($model) {
$this->model = $model;
} function toString() {
return "I drive a $this->model.";
}}
$c = new Car('Dodge');
echo $c->toString();
?>
Answer : AB
Which of the following statements about PHP is true? (Choose 3) a) A final class can be derived. b) A final class may be instantiated. c) A class with a final function may be derived. d) Static functions can be final. e) Properties can be final.
Answer : B,C,D
Webservices are primarily meant to support
Answer : B
What is the result of the following bitwise operation in PHP?
1 ^ 2
Answer : B
You want to allow your users to submit HTML code in a form, which will then be displayed as real code and not affect your site layout. Which function do you apply to the text, when displaying it? (Choose 2)
Answer : BD
When working with the MVC paradigma, the business logic should be implemented in which of the following components?
Answer : A
What function is used to retrieve all available information about a symbolic link?
Answer : D
What is the return value of the following code?
strpos("me myself and I", "m", 2)
Answer : B
What is the output of the following code?
$first = "second";
$second = "first";
echo $$$first;
Answer : B
Have any questions or issues ? Please dont hesitate to contact us