My Report

PHP Programming Practice Test 4


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. Which directive sets a maximum allowable amount of memory in megabytes that a script can allow?

2. What is the default number of seconds that cached session pages are made available before the new pages are created?

3. If you want to temporarily store uploaded files in the /tmp/phpuploads/ directory, which one of the following statement will you use?

4. 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;
    ?>

5. Which Apache directive outputs Apache's server version, server name, port and compile-in modules?

6. What is the default value of the directive max_file_limit?

7. Which one of the following function is used to send an email using PHP script?

8. What is the default port number of HTTPs?

9. Which of the following statements is used to add an attachment to the mail?

10. Which of the following directive determines the maximum amount of time that a PHP script will spend attempting to parse input before registering a fatal error?


 

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.