Pre-Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65pass65

Free Zend PHP 5 Certification Practice Questions

Exams4sure Dumps

Exam style questions across every 200-500 domain

Last Update 3 days ago
Total Questions : 219

Start with our free 200-500 practice questions, carefully crafted to mirror the domains, phrasing, and difficulty of the real Zend Certification exam. Each 200-500 exam question comes with a detailed rationale that explains not just which answer is correct but why the others fall short. That's how concepts stick. Use the free set to benchmark yourself: identify your Zend weak domains, see where you're losing marks, and build a focused study plan in minutes.

200-500 PDF

200-500 PDF (Printable)
$54.25
$154.99

200-500 Testing Engine

200-500 PDF (Printable)
$59.5
$169.99

200-500 PDF + Testing Engine

200-500 PDF (Printable)
$74.55
$212.99
Question # 11

Which of the following functions can help prevent session fixation vulnerabilities?

Options:

A.  

magic_quotes_gpc()

B.  

strip_tags()

C.  

addslashes()

D.  

session_regenerate_id()

Discussion 0
Question # 12

Which is the most secure approach for handling dynamic data in SQL queries?

Options:

A.  

Use addslashes().

B.  

Enable magic_quotes_gpc.

C.  

Use prepared statements if supported by the database library, data-specific escaping functions otherwise.

D.  

Use stored procedures.

Discussion 0
Question # 13

Which of the following statements about exceptions are correct? (Choose 2)

Options:

A.  

you can only throw classes derived from Exception

B.  

a try block can have multiple catch blocks

C.  

a try block must not be followed by a catch block

D.  

try blocks cannot contain nested try blocks

Discussion 0
Question # 14

Which PHP function retrieves a list of HTTP headers that have been sent as part of the HTTP response or are ready to be sent?

Options:

A.  

header()

B.  

headers()

C.  

headers_list()

D.  

headers_sent()

Discussion 0
Question # 15

What function allows resizing of PHP's file write buffer?

Options:

A.  

ob_start()

B.  

set_write_buffer()

C.  

stream_set_write_buffer()

D.  

Change the output_buffering INI setting via ini_set() function

Discussion 0
Question # 16

How can you determine if magic_quotes_gpc is enabled? (Choose 2)

Options:

A.  

Use the get_magic_quotes() function.

B.  

Using the get_magic_quotes_runtime() function.

C.  

Use the get_magic_quotes_gpc() function.

D.  

Using ini_get('magic_quotes_gpc').

E.  

Using ini_get('magic_quotes').

Discussion 0
Question # 17

Which of the following is correct? (Choose 2)

1) A class can extend more than one class.

2) A class can implement more than one class.

3) A class can extend more than one interface.

4) A class can implement more than one interface.

5) An interface can extend more than one interface.

6) An interface can implement more than one interface.

Options:

A.  

1)

B.  

2)

C.  

3)

D.  

4)

E.  

5)

F.  

6)

Discussion 0
Question # 18

Which elements does the array returned by the function pathinfo() contain?

Options:

A.  

root, dir, file

B.  

dirname, filename, fileextension

C.  

dirname, basename, extensio

D.  

path, file

Discussion 0
Question # 19

What will the following code print?

echo addslashes('I am a small "HTML" string, which is

\'invalid\'.');

Options:

A.  

I am a small "HTML" string, which is 'invalid'.

B.  

I am a small \"HTML\" string, which is \'invalid\'.

C.  

I am a small \"HTML\" string, which is \\'invalid\\'.

D.  

I am a small \"HTML\" string, which is \\\'invalid\\\'.

E.  

I am a \small\<\/b\> "HTML" string, which is 'invalid'\<\/u\>.

Discussion 0
Question # 20

You are creating an application that repeatedly connects to a database to retrieve order data for invoices. All data comes from the same database. In order to preserve resources, you have to ensure that only one database connection should be used at any time. The code also has to open as few new database connections as possible. Which design pattern should you use for this scenario?

Options:

A.  

Adapter

B.  

Factory

C.  

MVC

D.  

Singleton

Discussion 0

Free Exams Sample Questions