Free 200-550 Exam Braindumps
Zend Certified PHP Engineer Questions 46–50 (page: 11)

Updated On: 9-Feb-2026

CORRECT TEXT
What is the name of the key in $_FILES['name'] that contains the number of bytes of the uploaded file?

  1. size

Answer(s): A



What information can be used to reliably determine the type of an uploaded file?

  1. MIME type
  2. File name extension
  3. Contents of the file

Answer(s): C



Which MIME type is always sent by a client if a JPEG file is uploaded via HTTP?

  1. image/jpeg
  2. image/jpg
  3. image/pjpeg
  4. Depends on the client system

Answer(s): D



Your application uses PHP to accept and process file uploads. It fails to upload a file that is 5 MB in size, although upload_max_filesize is set to "10M". Which of the following configurations could be responsible for this outcome? (Choose 2)

  1. The PHP configuration option post_max_size is set to a value that is too small
  2. The web server is using an incorrect encoding as part of the HTTP response sent to the client
  3. The browser uses an incorrect encoding as part of the HTTP request sent to the server
  4. The hidden form field MAX_FILE_SIZE was set to a value that is too small
  5. PHP cannot process file uploads larger than 4 MB

Answer(s): A,D



Consider the following table data and PHP code. What is the outcome?
Table data (table name "users" with primary key "id"):
id name email
------- ----------- -------------------
1 anna alpha@example.com
2 betty beta@example.org
3 clara gamma@example.net
5 sue sigma@example.info
PHP code (assume the PDO connection is correctly established):
$dsn = 'mysql:host=localhost;dbname=exam';
$user = 'username';
$pass = '********';
$pdo = new PDO($dsn, $user, $pass);
$cmd = "SELECT * FROM users WHERE id = :id";
$stmt = $pdo->prepare($cmd);
$id = 3;
$stmt->bindParam('id', $id);
$stmt->execute();
$stmt->bindColumn(3, $result);
$row = $stmt->fetch(PDO::FETCH_BOUND);

  1. The database will return no rows.
  2. The value of $row will be an array.
  3. The value of $result will be empty.
  4. The value of $result will be 'gamma@example.net'.

Answer(s): D



Viewing page 11 of 46
Viewing questions 51 - 55 out of 223 questions


Post your Comments and Discuss Zend 200-550 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!