| | | | MCQ Tutorial - Web Designing->PHP | | | | 1.) What PHP stands for? | | Options are: | | A.) Hypertext Preprocessor
| | B.) Pre Hypertext Processor
| | C.) Pre Hyper Processor
| | D.) Pre Hypertext Process
| | Correct Option: D | | | | | | | 2.) Which of the following tags is a valid way to begin and end a PHP code block? | | Options are: | | A.) <?php ?>
| | B.) <% %>
| | C.) <? %>
| | D.) <php? ?>
| | Correct Option: A | | | | | | | 3.) mysql_connect() does not take following parameter | | Options are: | | A.) password
| | B.) database name
| | C.) database host
| | D.) user ID
| | Correct Option: B | | | | | | | 4.) How does the identity operator === compare two values? | | Options are: | | A.) It bases its comparison on the C strcmp function exclusively
| | B.) It converts them to a common compatible data type and then compares the resulting values
| | C.) It returns True only if they are both of the same type and value
| | D.) If the two values are strings, it performs a lexical comparison
| | Correct Option: B | | | | | | | 5.) Under what circumstance is it impossible to assign a default value to a parameter while declaring a function? | | Options are: | | A.) When the parameter is Boolean
| | B.) When the function contains only one parameter
| | C.) When the parameter is being declared as passed by reference
| | D.) When the function is being declared as a member of a class
| | Correct Option: C | | | | | | | | | | | |