My Report

PHP Web Development Test – 1


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. The attack which involves the insertion of malicious code into a page frequented by other users is known as _______________

2. Which two predefined variables are used to retrieve information from forms?

3. When you use the $_POST variable to collect data, the data is visible to ___________

4. Which variable is used to collect form data sent with both the GET and POST methods?

5. To validate an email address, which flag is to be passed to the function filter_var()?

6. Which function is used to remove all HTML tags from a string passed to a form?

7. Which one of the following should not be used while sending passwords or other sensitive information?

8. How many validation filters like FILTER_VALIDATE_EMAIL are currently available?

9. When you use the $_GET variable to collect data, the data is visible to ___________

10. What will be the value of the variable $input in the following PHP code?

    <?php
    $input = "Swapna<td>Lawrence</td>you are really<i>pretty</i>!";
    $input = strip_tags($input,"<i></i>");
    echo $input;
    ?>

 

Start practicing “1000 MCQs on PHP”, and once you are ready, you can take tests on all topics by attempting our “PHP Test Series”.

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.