What is the maximum size of the VARCHAR column type?
What is the maximum size of the VARCHAR column type?
What is the output of the following code?
What is the output of the following code?
<code>
class test {
public $value = 0;
function test() {
$this->value = 1;
} function __construct() {
$this->value = 2;
}}
$object = new test();
echo $object->value;
Which piece of code will return the ASCII value of a character?
Which piece of code will return the ASCII value of a character?
what is the value of $_POST[‘accept’]?
The following form is loaded in a browser and submitted, with the checkbox activated:
<code>
<form method=”post”>
<input type=”checkbox” name=”accept”>
<form>
</code>
In the server-side PHP code to deal with the form data, what is the value of $_POST[‘accept’]?
Which of the following data types cannot be directly manipulated by the client?
Which of the following data types cannot be directly manipulated by the client?
How can you now access the relative coordinates of the mouse click?
An HTML form contains this form element:
<code>
<input type=”image” name=”myImage” src=”image.png” />
</code>
The user clicks on the image to submit the form. How can you now access the relative coordinates
of the mouse click?
Which of the following statements is correct?
Which of the following statements is correct?
Which design pattern should you use for this application?
You are creating an application that generates invoices in a variety of formats, including PDF,
ODS and HTML. Each of these formats is represented as a PHP class in your application. While
some of the operations can be performed on all of the different formats (such as saving and
loading), other operations may be specific to one or two of the formats (such as setting as read
only). Which design pattern should you use for this application?
Which methods can be used to overload object properties?
Which methods can be used to overload object properties? (Choose 2)
What super-global should be used to access information about uploaded files via a POST request?
What super-global should be used to access information about uploaded files via a POST
request?