adplus-dvertising

Welcome to the Session Handling in PHP MCQs Page

Dive deep into the fascinating world of Session Handling in PHP with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Session Handling in PHP, a crucial aspect of PHP. In this section, you will encounter a diverse range of MCQs that cover various aspects of Session Handling in PHP, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within PHP.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Session Handling in PHP. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of PHP.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Session Handling in PHP. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Session Handling in PHP MCQs | Page 3 of 10

Q21.
In PHP4.1 and later versions, cookies name/value pair are added to the
Discuss
Answer: (d).Both a and b
Discuss
Answer: (c).phpinfo ( ) function
Q23.
Which two predefined variables are used to retrieve information from forms?
Discuss
Answer: (b).$_GET & $_SET
Q24.
The attack which involves the insertion of malicious code into a page frequented by other users is known as..
Discuss
Answer: (c).cross-site scripting
Q25.
When you use the $_GET variable to collect data, the data is visible to..
Discuss
Answer: (c).everyone
Q26.
When you use the $_POST variable to collect data, the data is visible to..
Discuss
Answer: (b).only you
Q27.
Which variable is used to collect form data sent with both the GET and POST methods?
Discuss
Answer: (d).$_REQUEST
Q28.
Which one of the following should not be used while sending passwords or other sensitive information?
Discuss
Answer: (a).GET
Q29.
Which function is used to remove all HTML tags from a string passed to a form?
Discuss
Answer: (b).strip_tags()
Q30.
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>");
    ?>
Discuss
Answer: (d).Swapna Lawrence you are really<i>pretty</i>!
Page 3 of 10

Suggested Topics

Are you eager to expand your knowledge beyond PHP? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!