What is the result of the following code?
define('PI', 3.14);
class T
{
const PI = PI;
}
class Math
{
const PI = T::PI;
}
echo Math::PI;
A. Parse error
B. 3.14
C. PI
D. T::PI
Transactions should be used to: (Choose 2)
A. Prevent errors in case of a power outage or a failure in the SQL connection
B. Ensure that the data is properly formatted
C. Ensure that either all statements are performed properly, or that none of them are.
D. Recover from user errors
What is the output of the following code?
function fibonacci (and$x1 = 0, and$x2 = 1)
{
$result = $x1 + $x2;
$x1 = $x2;
$x2 = $result;
return $result;
}
for ($i = 0; $i < 10; $i++) {
echo fibonacci() . ',';
}
A. An error
B. 1,1,1,1,1,1,1,1,1,1,
C. 1,1,2,3,5,8,13,21,34,55,
D. Nothing
Which constant must be passed as the second argument to htmlentities() to convert single quotes (') to HTML entities?
A. TRUE
B. FALSE
C. ENT_QUOTES
D. ENT_NOQUOTES
E. ENT_COMPAT
You want to access the 3rd character of a string, contained in the variable $test. Which of the following possibilites work? (Choose 2)
A. echo $test(3);
B. echo $test[2];
C. echo $test(2);
D. echo $test{2};
E. echo $test{3};
Assuming UTF-8 encoding, what is the value of $count?
A. 0
B. 4
C. 5
D. 7
Which of the following are NOT acceptable ways to create a secure password hash in PHP? (Choose 2)
A. md5()
B. hash_pbkdf2()
C. password_hash()
D. crypt()
E. openssl_digest()
What does the __FILE__ constant contain?
A. The filename of the current script.
B. The full path to the current script.
C. The URL of the request made.
D. The path to the main script.
Which of these databases is NOT supported by a PDO driver?
A. Microsoft SQL Server
B. SQLite
C. Microsoft Access
D. Berkeley DB
Is the following code vulnerable to SQL Injection ($mysqli is an instance of the MySQLi class)?
$age = $mysqli->real_escape_string($_GET['age']);
$name = $mysqli->real_escape_string($_GET['name']);
$query = "SELECT * FROM `table` WHERE name LIKE '$name' AND age = $age";
$results = $mysqli->query($query);
A. No, the code is fully protected from SQL Injection.
B. Yes, because the $name variable is improperly escaped.
C. Yes, because the $name variable and the $age variable is improperly escaped.
D. Yes, because the $age variable is improperly escaped.
E. Yes, because you cannot prevent SQL Injection when using MySQLi
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Zend exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 200-710 exam preparations and Zend certification application, do not hesitate to visit our Vcedump.com to find your solutions here.