Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exc65

Some databases support the LIMIT clause. ft is a method to ensure that

A.

only certain rows are deleted in DELETE queries.

B.

only a defined subset of rows are read in SELECT queries.

C.

only certain users can access the database.

The following form is loaded in a browser and submitted, with the checkbox activated:

In the server-side PHP code to deal with the form data, what is the value of $_POST['accept']?

A.

accept

B.

ok

C.

true

D.

on

Consider the following code:

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

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

What will the function call return?

A.

true

B.

false

C.

0

D.

1

E.

2

F.

3

You are creating an application that generates invoices in a variety of formats, including PDF, ODS and HTML. Each of these formats is represented as a PHP class in your application. While some of the operations can be performed on all of the different formats (such as saving and loading), other operations may be specific to one or two of the formats (such as setting as read only). Which design pattern should you use for this application?

A.

Adapter

B.

Factory

C.

MVC

D.

Singleton

Given a JSON-encoded string, which code sample correctly indicates how to decode the string to native PHP values?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

What is the length of a string returned by: md5(rand(), TRUE);

A.

Depends on the value returned by rand() function

B.

32

C.

24

D.

16

E.

64

When a class is defined as final it:

A.

Can no longer be extended by other classes.

B.

Means methods in the class are not over-loadable.

C.

Cannot be defined as such, final is only applicable to object methods.

D.

Is no longer iteratable.

Given the default PHP configuration, how can all of the parameters provided via GET be accessed in a form of a string?

A.

$_GET['ALL']

B.

$_SERVER['QUERY']

C.

$_SERVER['QUERY_STRING']

D.

$_ENV['QUERY']

E.

$QUERY_STRING

How can precisely one byte be read from a file, pointed by $fp? (Choose 2)

A.

fread($fp, 1);

B.

fgets($fp, 1);

C.

fgetss($fp, 1);

D.

fgetc($fp);

E.

All of the above

What is the purpose of the 4th argument to the file_get_contents() function?

A.

Indicate the number of bytes to read

B.

Specifies the stream context

C.

Indicates whether or not include_path should be used

D.

Identifies the starting offset

E.

None of the above