Weekend Special Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Question # 4

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

Full Access
Question # 5

What is the output of the following code?

A.

A parser error, try cannot be followed by multiple catch

B.

1:Exception

C.

1:MyExeption

D.

2:MyException

E.

MyException

Full Access
Question # 6

When would you use classes and when would you use namespaces?

A.

Use classes to encapsulate code and represent objects, and namespaces to avoid symbol name collisions

B.

Use classes for performance-sensitive code, and namespaces when readability matters more

C.

Use namespaces for performance-sensitive code, and classes when readability matters more

D.

Always use them; namespaces as always superior to classes

Full Access
Question # 7

What method can be used to find the tag via the DOM extension?

A.

getElementById()

B.

getElementsByTagName()

C.

getElementsByTagNameNS()

D.

getElementByName()

E.

findTag()

Full Access
Question # 8

Assuming UTF-8 encoding, what is the value of $count?

A.

4

B.

5

C.

7

D.

0

Full Access
Question # 9

What will the following function call print?

A.

22

B.

22.00

C.

022.000000

D.

22.000000

Full Access
Question # 10

Consider the following two files. When you run test.php, what would the output look like?

A.

12,12

B.

12,24

C.

24,12

D.

24,24

E.

PHP Fatal error: Cannot redeclare strlen()

Full Access
Question # 11

What is the difference between the spaceship operator (<=>) and the strcmp() function?

A.

There is no difference in functionality

B.

strcmp() returns a Boolean value, the spaceship operator a number

C.

strcmp() does a case-intensive comparison, the spaceship operator does not

D.

The spaceship operator returns -1, 0 or 1; strcmp() may return any integer

Full Access