Pass the Zend Zend Certification 200-530 Questions and answers with CertsForce

Viewing page 5 out of 8 pages
Viewing questions 41-50 out of questions
Questions # 41:

A/hen comparing prepared statements and regular, application-constructed SQL statements, which of the following is true?

Options:

A.

Prepared statements are faster


B.

Prepared statements are always shorter


C.

Prepared statements are more secure


D.

Prepared statements are easier to develop


E.

None of the above


Expert Solution
Questions # 42:

Consider the following table data and PHP code. What is the outcome?

Table data (table name "users" with primary key "Id"):

Question # 42

PHP code (assume the PDO connection is correctly established):

Question # 42

Options:

A.

The database will return no rows


B.

The value of $result will be an array


C.

The value of $result will be empty


D.

The value of $result will be 'gamma@exmple.net'.


Expert Solution
Questions # 43:

What is the name of the PHP function used to automatically load non-yet defined classes?

Options:

A.

Autoload()


B.

__autoload()


C.

__catch()


D.

Load()


E.

loadClass()


Expert Solution
Questions # 44:

What does an object based on the Active Record pattern provide?

Options:

A.

A way to actively control the application's workflow


B.

A way to record the history of its changes


C.

A way to effortlessly store its properties in a database


Expert Solution
Questions # 45:

Which piece of code will return the ASCII value of a character?

Options:

A.

(int)'t';


B.

ord('t');


C.

to_ascii('t');


D.

chr('t');


Expert Solution
Questions # 46:

What can prevent PHP from being able to open a file on the hard drive (Choose 3)?

Options:

A.

File system permissions


B.

File is outside of open_basedir


C.

File is owned by another user and safe_mode is enabled.


D.

File is inside the /tmp directory.


E.

PHP is running as the web server user.


Expert Solution
Questions # 47:

After running this sort, what will be the value of $b?

$a = array('_!', 'def', 0);

$b = sort($a);

Options:

A.

array(0, 'def', '_!')


B.

array('_!', 0, 'def')


C.

array('def', 0, '_!)


D.

None of the above


Expert Solution
Questions # 48:

Consider the following code:

strspn($test, 'aeiou', 1);

The variable $test contains the string "You get certified".

What will the function call return?

Options:

A.

true


B.

false


C.

0


D.

1


E.

2


F.

3


Expert Solution
Questions # 49:

How many elements does the $matches array contain after the following function call is performed?

preg_match('/^(\d{1,2}([a-z]+))(?:\s*)\S+ (?=200[0-9])/', '21st March

2006', $matches);

Options:

A.

1


B.

2


C.

3


D.

4


Expert Solution
Questions # 50:

Which of the following statements about SOAP is NOT true?

Options:

A.

SOAP is a request-/response-based protocol.


B.

SOAP can be transported using SMTP, HTTP and other protocols.


C.

SOAP requires developers to use WSDL.


D.

SOAP traffic via HTTP can be encrypted and compressed just like other HTTP requests.


Expert Solution
Viewing page 5 out of 8 pages
Viewing questions 41-50 out of questions