200-500 Exam Questions
241 real 200-500 exam questions with expert-verified answers and explanations. Page 1 of 5.
- Question #1
Which of the following can be registered as entry points with a SoapServer instance (choose 3)
- Question #2
What DOMElement method should be used to check for availability of a non-namespaced attribute?
- Question #3
Which of the following data types is implicitly passed by reference in PHP 5 while it is passed by value in PHP 4?
- Question #4
REST is a(n) ...
- Question #5
What is the output of the following code? echo 0x33, ' monkeys sit on ', 011, ' trees.';
- Question #6
When checking whether two English words are pronounced alike, which function should be used for the best possible result?
- Question #7
Given the following code, what is correct? function f(stdClass &$x = NULL) { $x = 42; } $z = new stdClass; f($z); var_dump($z);
- Question #8
What is the maximum size of the VARCHAR column type?
- Question #9
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 t...
- Question #10
Transactions can be used to: (Choose 2)
- Question #11
Which piece of code will return the ASCII value of a character?
- Question #12
Which of the following data types cannot be directly manipulated by the client?
- Question #13
An HTML form contains this form element: <input type="image" name="myImage" src="image.png" /> The user clicks on the image to submit the form. How can you now access the relative...
- Question #14
Which of the following statements is correct?
- Question #15
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 applicatio...
- Question #16
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...
- Question #17
Which methods can be used to overload object properties? (Choose 2)
- Question #18
What super-global should be used to access information about uploaded files via a POST request?
- Question #19
What is the function of backtick (`) characters in PHP?
- Question #20
Which constant must be passed as the second argument to htmlentities() to convert single quotes (') to HTML entities?
- Question #21
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; }
- Question #22
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)...
- Question #23
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 de...
- Question #24
Webservices are primarily meant to support
- Question #25
What is the result of the following bitwise operation in PHP? 1 ^ 2
- Question #26
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...
- Question #27
When working with the MVC paradigma, the business logic should be implemented in which of the following components?
- Question #28
What function is used to retrieve all available information about a symbolic link?
- Question #29
What is the return value of the following code? strpos("me myself and I", "m", 2)
- Question #30
What is the output of the following code? $first = "second"; $second = "first"; echo $$$first;
- Question #31
One common security risk is exposing error messages directly in the browser. Which PHP configuration directive can be disabled to prevent this?
- Question #32
What is the error in the following declaration of a static class method? 1 <?php 2 class car { 3 static $speeds = array( 4 'fast', 5 'slow', 6 'medium', 7 ); 9 static function getS...
- Question #33
Would the following code catch a parse error? try { echo $label } catch (Exception $e) { echo $e->getMessage(); }
- Question #34
What is the difference between isset() and other is_*() functions (is_alpha(), is_number(), etc.)?
- Question #35
What function should be used to escape command line arguments that are passed to commands executed from PHP?
- Question #36
$_SERVER consists of data provided by the web server and is therefore trustworthy.
- Question #37
What is the name of the PHP function used to automatically load non-yet defined classes?
- Question #38
After executing a SELECT query on a database server,
- Question #39
Which of the following are valid identifiers (Choose 3)
- Question #40
What is the output of the following code? 1 <?php 2 for ($i = 0; $i < 1.02; $i += 0.17) { 3 $a[$i] = $i; 4 } 5 echo count($a); 6 ?>
- Question #41
Transactions are used to:
- Question #42
What piece of code would you use to obtain an array of response headers for a given URL, indexed by their respective names?
- Question #43
Some databases support the LIMIT clause. It is a method to ensure that ...
- Question #44
What is the output of the following code? printf('%4$d %2$s sit on 2 trees and eat %3$3.2f %1$s', "bananas", "monkeys", 9, 99);
- Question #47
How to read a single line, no matter how long from an file opened in the example below? $fp = fopen("my_file.txt", "w");
- Question #48
Which of the following statements are NOT true?
- Question #49
Which of the following statements are correct? (Choose 2)
- Question #50
How many elements does the array $pieces contain after the following piece of code has been executed? $pieces = explode("/", "///");
- Question #51
What does the __FILE__ constant contain?
- Question #52
You want to parse a URL into its single parts. Which function do you choose?