

MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.
1. |
What will be the output of the following PHP code?"convertSpace"));?>%! |
A. | Peter_is_a_great_guy! |
B. | Peterisagreatguy! |
C. | Peter is a great guy! |
D. | Error |
Answer» D. Error | |
2. |
What will be the output of the following PHP code?%! |
A. | FALSE |
B. | TRUE |
C. | NULL |
D. | ERROR |
Answer» D. ERROR | |
3. |
Which one of the following filter checks if variable of specified type exists?%! |
A. | filter_has_var |
B. | filter_var |
C. | filter_id |
D. | filter_var_array |
Answer» B. filter_var | |
4. |
What will be the output of the following PHP code?array ("min_range"=>0, "max_range"=>256));if (!filter_var($var, FILTER_VALIDATE_INT, $int_options)) echo("Integer is not valid");else echo("Integer is valid");?>%! |
A. | No output is returned |
B. | Integer is not valid |
C. | Integer is valid |
D. | Error |
Answer» C. Integer is valid | |
5. |
*/*_Which one of the following does not describe a validating filter?? |
A. | Are used to allow or disallow specified characters in a string |
B. | Are used to validate user input |
C. | Strict format rules |
D. | Returns the expected type on success or FALSE on failure |
Answer» B. Are used to validate user input | |
6. |
_ What will be the output of the following PHP code?$? |
A. | No output is returned |
B. | Integer is not valid |
C. | Integer is valid |
D. | Error |
Answer» D. Error | |
7. |
Which one of the following filter is used to filter several variables with the same or different filters?$? |
A. | filter_var_array() |
B. | filter_var() |
C. | filter_input |
D. | filter_input_array |
Answer» B. filter_var() | |
8. |
Which of the following is/are an external data?1. Cookies2. Input data from a form3. Server Variables4. Web services data |
A. | Only 2 |
B. | 2 and 3 |
C. | None of the mentioned |
D. | All of the mentioned |
Answer» E. | |