http://https://www.newpassleader.com/Zend-Technologies/200-710-exam-preparation-materials.html (235 Q&As Dumps, 30%OFF Special Discount: 30free )
NEW QUESTION NO: 10
What function allows resizing of PHP's file write buffer?
A. ob_start()
B. set_write_buffer()
C. Change the output_buffering INI setting via ini_set() function
D. stream_set_write_buffer()
Answer: D
NEW QUESTION NO: 11
SIMULATION
Which PHP function sets a cookie and URL encodes its value when sending it to the browser?
Answer:
setcookie -or- setcookie()
NEW QUESTION NO: 12
Consider 3 PHP files that are called asynchronously via XmlHttpRequest:
Which of the following statements is true? (Choose two.)
A. Concurrent requests will be blocked until the session lock is released
B. The requests are guaranteed to be executed in order
C. The requests may be processed out of order
D. The total execution time for all 3 requests will be the maximum of the longest sleep() call
Answer: D
NEW QUESTION NO: 13
Which of the following are NOT acceptable ways to create a secure password hash in PHP? (Choose two.)
A. md5()
B. crypt()
C. openssl_digest()
D. hash_pbkdf2()
E. password_hash()
Answer: A,C
NEW QUESTION NO: 14
What is the output of the following code?
A. 1
B. 5
C. 20
D. 3
E. 7
Answer: B
NEW QUESTION NO: 15
Consider the following table data and PHP code. What is the outcome?
Table data (table name "users" with primary key "id"):
PHP code (assume the PDO connection is correctly established):
A. the database will return no rows.
B. The value of $result will be '[email protected]'.
C. The value of $row will be an array.
D. The value of $result will be empty.
Answer: B
NEW QUESTION NO: 16
An unbuffered database query will (choose two):
A. free connection faster for others scripts to use
B. return the first data faster
C. return all data faster
D. use less memory
Answer: B,D
NEW QUESTION NO: 17
Consider the following two files. When you run test.php, what would the output look like?
A. 24,24
B. 24,12
C. 12,12
D. PHP Fatal error: Cannot redeclare strlen()
E. 12,24
Answer: B
NEW QUESTION NO: 18
What is the output of the following code?
A. an empty string
B. "second"
C. an error
D. "first"
Answer: B
NEW QUESTION NO: 19
What is the difference between the spaceship operator (<=>) and the strcmp() function?
A. The spaceship operator returns -1, 0 or 1; strcmp() may return any integer
B. strcmp() returns a Boolean value, the spaceship operator a number
C. strcmp() does a case-intensive comparison, the spaceship operator does not
D. There is no difference in functionality
Answer: A
NEW QUESTION NO: 20
What is the output of the following code?
A. NULL
B. int(2)
C. int(3)
D. Notice: Undefined property MyClass: $abc
E. Fatal error: Access to private variable MyTrait: $abc from context MyClass
Answer: C