Hi all,
I’m preparing for zend exam which I’ll be taking soon with some mock test from the zend. Some questions are easy and some are twisted. But, for some, I can’t find related information over the net. I posted those questions for you guys to see. I hope you guys can help me on this.
[Quote]
1. Name three new extensions in PHP5
choose 3
a)tidy
b)soap
c)java
d)curl
e)mysqli
My Guess : soap,java,tidy
2.Identify the best appraoch to compare to variables in a binary-safe fashion
a)Both strcmp() and $a===$b
b)$a==$b
c)$a===$b
d)str_compare()
e)strstr
my guess : e
3.When running PHP in a shared host environment, what is the major security concern when it comes to session data?
a)Sessions on shared hosts are easily hijacked by outside malicious users
b)All of the above
c)You cannot use a custom data store in shared hosts
d)Session data stored in the file system can be read by other scripts on the same shared host
e)Users outside the shared host can access any site which created a session for them
my guess : c
Which PCRE regular expression will match the string PhP5-rocks?
a)/^[hp1-5]*–
b)/[hp1-5]*–
c)/[hp][1-5]–*/
d)/[Php]{3}[1-5]{2,3}–
e)/[a-z1-5–
my guess: No correct answer
Which of the following are examples of the new engine executor models available in PHP 5?
(choose 3)
a)Switch
b)Conditional
c)Goto
d)Call
e)Dynamic
my guess : cde
The ______ constant in a CLI script is an automatically provided file resource representing standard input of the terminal.
a)STDIN
b)
c)STDIO
d)PHP::STDIO
e)STD_IN
my guess : a
Event-based XML parsing is an example of which parsing model?
a)SAX
b)DOM
c)XML Object Mapping
d)XPath
e)XQuery
my guess : d