Official Bank 0/232

Zend Certified Engineer (200-710) - Zend Actual Exam Questions

Last updated on March 10, 2026

97% Exam Compliance
232 Total Questions
1
Question

Consider the following code. What can be said about the call to file_get_contents? $getdata = "foo=bar"; $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $getdata ) ); $context = stream_context_create($opts); $result = file_get_contents('http://example.com/submit.php', false, $context);

Options
A

A GET request will be performed on http://example.com/submit.php

B

A POST request will be performed on http://example.com/submit.php

C

An error will be displayed

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question

Which of the following PHP functions can be used to set the HTTP response code? (Choose 2)

Select 2
Options
A

header_add()

B

header()

C

http_set_status()

D

http_response_code()

E

http_header_set()

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question

What is the output of the following code? function increment (&$val) { return $val + 1; } $a = 1; echo increment ($a); echo increment ($a);

Reveal Only
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question

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);

Options
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

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question

Which class of HTTP status codes is used for redirections?

Options
A

2XX

B

3XX

C

4XX

D

5XX

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.