PHP Session Handling Mcqs
Our collections of Multiple choice questions and answers focuses on study of PHP Session Handling. These questions are chosen from a collection of most authoritative and best reference books on PHP Session Handling. Our aim is to prepare an individual for competitive exams like NTS, GAT, ECAT, University and College entrance exams and various tests and job interviews. One should practice our Mcqs to assimilate PHP Session Handling Topics comprehensively.
PHP Programming Mcqs
- Basics of PHP Mcqs
- PHP Arrays and Functions Mcqs
- PHP Constants and Operators Mcqs
- PHP Controls Structures Mcqs
- PHP Error and Exception Handling Mcqs
- PHP Filesystem Mcqs
- PHP Functions Mcqs
- PHP Objects Tools and Variables Mcqs
- PHP OOP Mcqs
- PHP Session Handling Mcqs
- Strings and Regular Expressions Mcqs
Computer MCQS
Sciences MCQS
2.
If you want to free all variables in a session, which function you can use
Session_destroy ( )
Session_unset ( )
Set ( )
All of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
3.
Which PHP function offers to send raw arbitrary HTTP headers?
Setcookie ( )
Set_header ( )
Header ( )
All of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
4.
PHP is not configured to transparently pass session IDs in the
GET argument
POST argument
HEADER arguments
Both a and b
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
5.
$_SESSION array is one of superglobal variables introduced in
PHP2.1
PHP3
PHP4.1
PHP6
6.
When value of sessionauto_start ( ) function is zero it means that
Session is started
No session data will be available
Session is terminated
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
7.
Session_unset ( ) takes
1 argument
2 arguments
3 arguments
No argument
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
8.
HTTP protocols by which browsers talk to a web server is
Valueless
Stateless
Useless
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
9.
Meaning of superglobal arrays is it can be
Referenced inside a function
Referenced outside of function
Used without declaring global first
All of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
10.
Secure ( ) argument in setcookie function returns result
In integer form
In string form
In boolean form
None of them
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
11.
In PHP4.1 and later versions, cookies name/value pair are added to the
Superglobal array
$_COOKIE
Global function
Both a and b
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
12.
Php.ini file can be viewable by calling
Info ( ) function
Ini_file ( ) function
Phpinfo ( ) function
Php_ini ( ) function
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
13.
Which two predefined variables are used to retrieve information from forms?
$GET & $SET
$_GET & $_SET
$__GET & $__SET
GET & SET
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
14.
The attack which involves the insertion of malicious code into a page frequented by other users is known as..
Basic sql injection
Advanced sql injection
Cross-site scripting
Scripting
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
15.
When you use the $_GET variable to collect data, the data is visible to..
None
Only you
Everyone
Selected few
Answer & Solution
No Solution for this Answer..! Report or Discus this Question