200-530 Exam Questions
408 real 200-530 exam questions with expert-verified answers and explanations. Page 1 of 9.
- Question #1
You run the following PHP script: <?php $name = mysql_real_escape_string($_POST["name"]); $password = mysql_real_escape_string($_POST["password"]); ?> What is the use of the mysql_...
- Question #2
You want to enable compression for every Web page of your Website. Which of the following PHP.ini directives can you set to accomplish the task?Each correct answer represents a com...
- Question #3
You run the following PHP script: <?php if ( preg_match("/[^a-z589]+/", "AB asdfg589nmGH", $array) ) { print "<pre>\n"; print_r( $array ); print "</pre>\n"; } ?> What will be the o...
- Question #4
You run the following PHP script: <?php $array1 = array ('a' => 20, 30, 35); $array2 = array ('b' => 20, 35, 30); $array = array_intersect_assoc ($array1, $array2); var_dump ($arra...
- Question #5
Which of the following functions can you use to mitigate a command injection attack?Each correct answer represents a complete solution. Choose all that apply.
- Question #6
Which of the following HTML code snippets can be used for the file uploading?
- Question #7
You have the following code in the welcome.html file: <form action="welcome.php" method="post"> Your Name: <input type="text" name="fname" /> Your Girl Friend Name: <input type="te...
- Question #9
John works as a Web site Developer for PHPWEB Inc. He uses the Windows operating system and works on PHP engine 5.0. He develops the following script: <?php gmmktime(0, 0, 0, 1, 1,...
- Question #11
Consider the following XML file: <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <title> SimpleXML Example</title> </hea...
- Question #12
Consider a string in the following format: Zend 200-530 Exam a*bcd/a.d You want to perform regular expression in this string; however, you are unable to do this since the string co...
- Question #13
Which of the following PHP file handling functions will you use if you want to retrieve only the texts from an HTML file and leave all HTML and PHP tags?
- Question #14
You have created a table based on the following data: EmpID NUMBER (5) PRIMARY KEY EmpName VARCHAR2 (35) NOT NULL Salary NUMBER (9, 2) NOT NULL Commission NUMBER (4, 2) ManagerName...
- Question #15
Which of the following directives can be used to improve the security while using the shared hosting environment?Each correct answer represents a complete solution. Choose all that...
- Question #16
You have been given the following code snippet: <?php $string = <<<XML <?xml version="1.0" encoding="ISO-8859-1"?> <email> <heading>Technical issue in Linux OS</heading> <body>Ther...
- Question #17
Consider the following PHP script: 1. <?php 2. $charlist = array ( 3. 'a' => 'one', 4. 'b' => 'two', 5. ); 6. *************** 7. ?> Zend 200-530 Exam What statement will you write...
- Question #18
You run the following PHP script: <?php $array1 = array ("a", "b", "c", "d", "e", "f"); $array2 = array_slice($array1, -3); foreach ( $array2 as $val ) { print "$val "; } ?> What w...
- Question #19
Given a table created as shown below: create table foo (c1 int, c2 int, c3 int, c4 char(10)) If column c1 has a cardinality of 10, column c2 has a cardinality of 5000, and column c...
- Question #20
A table named employees is given below: Which of the following statements would return the employees names, in ascending order, based on their last name and first name? Each correc...
- Question #21
Consider the following code: <?php $x=0; $i; for($i=0;$i<5;$i++) { $x+=$i; } print($x) ?> What will be the value of x?
- Question #22
Which of the following functions will you use to break a string into an array based on a specific pattern? Each correct answer represents a complete solution. Choose all that apply...
- Question #23
What will be the output of the following code snippet? <?php $input = array(4, "4", "3", 4, 3, "3", 3, 3, 3, 3, 3, 5, 5, 5, 5, 7, 7, 7, 7); echo count(array_unique($input)); ?> Zen...
- Question #24
In which of the following ways will you send data from a Web page if you do not know how data is sent?
- Question #25
Maria writes a query that uses outer join between two tables. Which of the following operators are not allowed in the query? Each correct answer represents a complete solution. Cho...
- Question #26
The following form is loaded in a recent browser and submitted, with the second list element selected: <form method="post"> <select name="list"> <option>one</option> <option>two</o...
- Question #27
When setting HTTP headers from PHP, how can you make sure that your application sends the same header twice, with different values?
- Question #29
What is the return value of the following code? Zend 200-530 Exam strpos("me myself and I", "m", 2)
- Question #30
An HTML form contains this form element <input type="file" name="myFile" /> When this form is submitted, the following PHP code gets executed: move_uploaded_file( $_FILES['myFile']...
- Question #31
What function can reverse the order of values in an array without the loss of key information?
- Question #32
What is the output of the following code? Zend 200-530 Exam
- Question #33
Which of the following encryption standards provides symmetric key encryption? (Choose 2)
- Question #34
Webservices are primarily meant to support
- Question #35
You have got the following array after applying some sorting operation: Array ( [0] => book1.pdf [1] => book11.pdf [2] => book12.pdf [3] => book2.pdf ) However, you wanted to sort...
- Question #36
Which of the following functions is used to insert a new element in the beginning of an array?
- Question #38
What is the maximum limit of the file size that a user can upload according to the code Snippet given below? <form enctype="multipart/form-data" action="index.php" method="post"> <...
- Question #39
You run the following PHP script: <?php function calc() { $x=10; $b=++$x; print($b); } ?> What will be the value of the variable b?
- Question #40
You have been given the following PHP code snippet: <?php $array = array ('1', '2', '3'); foreach ($array as $key => $value) { $value = 4; } print_r($array); ?> What will be the ou...
- Question #41
What is the result of the following code? Zend 200-530 Exam
- Question #42
When retrieving data from URLs, what are valid ways to make sure all file_get_contents calls send a certain user agent string? (Choose 2)
- Question #43
In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this?
- Question #44
Which elements can be encapsulated by namespaces?
- Question #45
What is the return value of the following code substr_compare("foobar", "bar", 3);
- Question #46
What function can be used to retrieve an array of current options for a stream context?
- Question #47
What is the difference between "print" and "echo"?
- Question #48
Which of the following describes a PHP extension?
- Question #49
Given the following DateTime objects, what can you use to compare the two dates and indicate that $date2 is the later of the two dates?
- Question #50
You have the following code in the welcome.html file: <form action="welcome.php" method="post"> Your Name: <input type="text" name="fname" /> Your Girl Friend Name: <input type="te...
- Question #51
Which kind of encryption is provided by PHP's crypt functions'?
- Question #52
Zend 200-530 Exam Which combination of the following filtering techniques prevents cross-site scripting (XSS) vulnerabilities?
- Question #53
What can NOT be used to send a cookie from within a PHP application?
- Question #54
Transitions can be used to: (Choose 2)