Welcome to TestSimulate

Pass Your Next Certification Exam Fast!

Everything you need to prepare, learn & pass your certification exam easily.

365 days free updates. First attempt guaranteed success.

Zend-Technologies Zend Certified PHP Engineer (200-550) Free Practice Test

Question 1
How should you track errors on your production website?

Correct Answer: A
Question 2
When tracking upload progress with sessions, the values of 2 INI settings are needed to determine the key in $_SESSION of the upload progress data. What are the INI settings? (Choose 2)

Correct Answer: C,D
Question 3
You want to parse a URL into its single parts. Which function do you choose?

Correct Answer: C
Question 4
What information can be used to reliably determine the type of an uploaded file?

Correct Answer: A
Question 5
Which of the following will NOT instantiate a DateTime object with the current timestamp?

Correct Answer: C
Question 6
CORRECT TEXT
Which PHP function is used to validate whether the contents of $_FILES['name']['tmp_name'] have really been uploaded via HTTP, and also save the contents into another folder?
Correct Answer:
move_uploaded_file(), move_uploaded_file
Question 7
What is the output of the following code?
echo "22" + "0.2", 23 . 1;

Correct Answer: B
Question 8
CORRECT TEXT
What is the name of the key in $_FILES['name'] that contains the number of bytes of the uploaded file?
Correct Answer:
size
Question 9
In order to create an object storage where each object would be stored only once, you may use which of the following? (Choose 2)

Correct Answer: B,D
Question 10
Consider the following table data and PHP code, and assume that the database supports transactions. What is the outcome?
Table data (table name "users" with primary key "id"):
id name email
1 anna [email protected]
2 betty [email protected]
3 clara [email protected]
5 sue [email protected]
PHP code (assume the PDO connection is correctly established):
$dsn = 'mysql:host=localhost;dbname=exam';
$user = 'username';
$pass = '********';
$pdo = new PDO($dsn, $user, $pass);
try {
$pdo->exec("INSERT INTO users (id, name, email) VALUES (6, 'bill', '[email protected]')");
$pdo->begin();
$pdo->exec("INSERT INTO users (id, name, email) VALUES (7, 'john',
'[email protected]')");
throw new Exception();
} catch (Exception $e) {
$pdo->rollBack();
}

Correct Answer: D
Question 11
Which of the following statements about exceptions is correct? (Choose 2)

Correct Answer: B,C