Exercises
-
Which of these statements is true about PHP 5?
-
a) Require and include are the same
-
b) Require includes files whether or not the line is executed
-
c) Require exits the script if it cannot find the file to include
-
d) None of the above
-
-
Which of the following is not a valid way to start a PHP comment?
-
a) //
-
b) ##
-
c) /*
-
d) None of the above
-
-
PEAR is...
-
a) A tasty fruit
-
b) The PHP Extended Assignment Repository
-
c) The PHP Extension and Application Repository
-
-
Heredoc syntax is...
-
a) A way to define strings without worrying about quotation marks
-
b) A automatic documentation tool for PHP
-
c) The opposite of theredoc syntax
-
-
Mixed-mode processing is...
-
a) The act of outputting HTML and pictures at the same time
-
b) The act of entering and exiting PHP processing mode several times
-
c) Impossible in PHP
-
-
Using switch/case rather than multiple if statements is...
-
a) Faster
-
b) Easier to read
-
c) Both a) and b)
-
d) None of the above
-
-
Escape sequences are the fastest way to exit your script: true or false?



Copyright 2012 Future Publishing Limited (company
registered number 2008885), a company registered
in England and Wales whose registered office is at
Beauford Court, 30 Monmouth Street, Bath, BA1 2BW, UK