Php Filter - Study Mode
[#1] Which of the following is/are an external data? 1. Cookies 2. Input data from a form 3. Server Variables 4. Web services data
Correct Answer
(D) All of the mentioned
[#2] How many types of filtering are present in PHP?
Correct Answer
(B) 2
Explanation
Solution: There are two main types of filtering: validation and sanitization.
[#3] Which one of the following filter is used to filter several variables with the same or different filters?
Correct Answer
(A) filter_var_array()
[#4] Which one of the following does not describe a validating filter?
Correct Answer
(A) Are used to allow or disallow specified characters in a string
Explanation
Solution: Option a) describes Sanitizing filters.
[#5] Which one of the following filter checks if variable of specified type exists?
Correct Answer
(A) filter_has_var