Keep scrolling down for answers and more stats ...
1. PHP is Scripting language
Brower Side
Server Side
Home Side
Client Side
2. What function do you use in PHP in order to access MySQL?
mysqlconnect()
mysql_connect()
sql_connect()
3. Which of the following is correct for PHP variables?
Variables can, but do not need, to be declared before assignment
Variables in PHP do not have intrinsic types - a variable does not know in advance whether it will be used to store a number or a string of characters.
Variables used before they are assigned have default values.
All of the above.
4. Which of the following type of variables have only two possible values either true or false?
Boolean
Integer
Double
String
5. Which of the following magic constant of PHP returns function name?
_FUNCTION_
_CLASS_
_NAME_
_FILE_
6. Which of the following keyword terminates the for loop or switch statement and transfers execution to the statement immediately following the for loop or switch?
Break
Continue
7. Which of the following function returns selected parts of an array?
array_reverse();
array_split();
array_slice();
array_part();
8. Can you assign the default values to a function parameters?
True
False
9. Which of the following is correct about preg_match() function?
The preg_match() function searches a string specified by string for a string specified by pattern, returning true if the pattern is found, and false otherwise.
The preg_match() function searches throughout a string specified by pattern for a string specified by string. The search is not case sensitive.
The preg_match() function searches string for pattern, returning true if pattern exists, and false otherwise.
10. Select the correct code to create a associative array in PHP