1. What will be the output of the following PHP code ?
Correct Answer is : reject them
2. What will be the output of the following PHP code ?
Correct Answer is : ANSI_QUOTES
3. What will be the output of the following PHP code ?
Correct Answer is : PIPES_AS_CONCAT
4. What will be the output of the following PHP code ?
5. Which two predefined variables are used to retrieve information from forms?
Correct Answer is : FALSE
6. The attack which involves the insertion of malicious code into a page frequented by other users is known as..
Correct Answer is : –sql-mode=’TRADITIONAL’
7. When you use the $_GET variable to collect data, the data is visible to..
8. When you use the $_POST variable to collect data, the data is visible to..
9. Which variable is used to collect form data sent with both the GET and POST methods?
Correct Answer is : empty value
10. Which one of the following should not be used while sending passwords or other sensitive information?
Correct Answer is : error_count
11. Which function is used to remove all HTML tags from a string passed to a form?
Correct Answer is : foreign_key_checks
12. What will be the value of the variable $input in the following PHP code?
Lawrenceyou are reallypretty!"; $input = strip_tags($input,""); ?>
Correct Answer is : identity
13. To validate an email address, which flag is to be passed to the function filter_var()?
Correct Answer is : INSTR()
14. How many validation filters like FILTER_VALIDATE_EMAIL are currently available?
Correct Answer is : libmysqld
15. What will be the output of the following PHP code?
Correct Answer is : –with-embedded-server
16. What will be the output of the following PHP code ?
Correct Answer is : FALSE
17. What will be the output of the following PHP code ?
18. What will be the output of the following PHP code ?
= 0) print "true"; else print "false"; ?>
19. What will be the output of the following PHP code ?
Correct Answer is : mysql_error()
20. What will be the output of the following PHP code ?
Correct Answer is : master.info