Vivid of 200-530 exam price materials and pdf for Zend Technologies certification for consumer, Real Success Guaranteed with Updated 200-530 pdf dumps vce Materials. 100% PASS Zend PHP 5.3 Certification exam Today!
Q31. What does an object based on the Active Record pattern provide?
A. A way to actively control the application's workflow
B. A way to record the history of its changes
C. A way to effortlessly store its properties in a database
Answer: C
Q32. Which of the following is NOT a valid function declaration?
A. function x ($x1 = array())
B. function x (A $x1)
C. function x (A $x1 = null)
D. function x ($x1 = $x2)
Answer: D
Q33. You want to test if a string matches a relatively complex pattern. Which of the following functions can you use? (Choose 2)
A. match()
B. preg_match()
C. ereg()
D. regex()
Answer: BC
Q34. 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</option>
<option>three</option>
</select>
</form>
In the server-side PHP code to deal with the form data, what is the value of $_POST ['list']?
A. 1
B. 2
C. two
D. null (since the <code> value attribute of the list has not been set)
Answer: C
Q35. How many array elements will be found in the return value of:
split(".", "
A. B.C")
B. 2
C. 3
D. 1
E. 6
F. 4
Answer: D
Q36. What will be the result of the following operation?
array_combine(array("A","B","C"), array(1,2,3));
A. array("A","B",C",1,2,3)
B. array(1,2,3,"A","B",C")
C. array("A"=>1,"B"=>2,"C"=>3)
D. array(1=>"A",2=>"B",3=>"C")
E. array(1,2,3)
Answer: C
Q37. What is the output of the following script?
1 <?php
2 class a
3 {
4 public $val = 10;
5 }
7 function renderVal (a $a)
8 {
9 return $a->$val;
10 }
12 renderVal (new a);
13 ?>
A. Nothing
B. NULL
C. A fatal error
D. $val
E. 10
Answer: C
Q38. Which of the following statements is correct?
A. Interfaces can extend only one interface
B. Interfaces can extend more than one interface
C. Interfaces can inherit a method from different interfaces
D. Interfaces can redeclare inherited methods
Answer: B
Q39. What happens if you try to access a property whose name is defined in a parent class as private, and is not declared in the current class?
A. An E_NOTICE error will be triggered.
B. An E_ERROR error will be triggered.
C. An E_WARNING error will be triggered.
D. No errors will be triggered
Answer: A
Q40. Your application needs to handle file uploads performed with HTTP PUT. How can you retrieve this data?
A. php://input stream
B. php://upload stream
C. $_FILES superglobal
D. $_PUT superglobal
Answer: A
Q41. You'd like to use the class MyDBConnection that's defined in the MyGreatFrarnework\GreafDatabaseAbstractionLayer namespace, but you want to minimize *as much as possible* the length of the class name you have to type. What would you do?
A. Import the MyGreatFramework namespace
B. Import the MyGreatFrarnework\GreafDatabaseAbstractionLayer namespace
C. Alias MyGreatFrarnework\GreafDatabaseAbstractionLayer\MyDBConnection to a shorter name
D. Alias MyGreatFrarnework\GreafDatabaseAbstractionLayer to a shorter name
Answer: B
Q42. Which of the following techniques ensures that a value submitted in a form can only be yes or no?
A. Use a select list that only lets the user choose between yes and no.
B. Use a hidden input field that has a value of yes or no.
C. Enable the safe_mode configuration directive.
D. None of the above.
Answer: D
Q43. When a transaction reports no affected rows, it means that: (Choose 2)
A. The transaction failed
B. The transaction affected no lines
C. The transaction was rolled back
D. The transaction was committed without error
Answer: AB
Q44. One common security risk is exposing error messages directly in the browser. Which PHP configuration directive can be disabled to prevent this?
A. html_display
B. error_reporting
C. display_errors
D. error_log
E. ignore_repeated_errors
Answer: C
Q45. Given the default PHP configuration, how can all of the parameters provided via GET be accessed in a form of a string?
A. $_GET['ALL']
B. $_SERVER['QUERY']
C. $_SERVER['QUERY_STRING']
D. $_ENV['QUERY']
E. $QUERY_STRING
Answer: C