Toggle navigation
Login / Register
Ask Questions
Study
Current Affairs
Previous Papers
Kerala PSC
IBPS
UPSC
RBI
TNPSC
MPSC
SSC
CBSE
United States
Model Tests
News
More
Answers
Coaching Centres
Careers
Downloads
Colleges
Kuwait News & Classifieds
Classic Jhumka Earrings Silver
INR 113.00
Free Shipping
Buy Now
Black Jhumka Earrings & Studs
INR 94.00
Free Shipping
Buy Now
Classic Jhumka Earrings Silver
INR 207.00
Free Shipping
Buy Now
Beautiful stud earing
INR 93.00
Free Shipping
Buy Now
Different Size Hoop and Stud Earrings Set
INR 243.00
Free Shipping
Buy Now
Golden Hoop Earing
INR 70.00
Free Shipping
Buy Now
×
Create account with Openguide
Sign Up
By clicking Sign Up, you agree that you have read and accepted the
Open Guide Online User Agreement.
Already have an account?
Log in
×
Login to OpenGuide
Login
Forgot password?
Reset it
New user?
Register
×
Reset your password
Reset Password
Registered user?
Log in
New user?
Register
Home
Practice Tests
General Knowledge Practice Tests
General Knowledge Quiz - Question & Answers Set - 14
15 Questions
Time Left -
General Knowledge Quiz - Question & Answers Set - 14
Question 1 :
What Is a Session
A
A session is a temporary set of variables which is stored in the server.A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests. There is only one session object available to your PHP script
Question 2 :
What is the function to start a session
A
session_start();
Question 3 :
How many ways can we get the value of current session id
A
session_id() returns the session id for the current session.
Question 4 :
How can we retrieve a session variable value
A
We can use global array $_SESSION[ÔÇÿvariablenameÔÇÖ] to retrieve data,where ÔÇÿvariablenameÔÇÖ is the name of our variable.
Question 5 :
What is a cookie
A
Cookie is a tiny bit of information stored in the client machine. We can set the expiration time of a cookie. setcookie(name, value, expire, path, domain); accessing cookie vale $_COOKIE["name"];
Question 6 :
What Is a Persistent Cookie
Question 7 :
What is difference between require (), include ()
A
Difference between require() and include() is that require() produces a FATAL ERROR if the file you want to include is not found. require() stop the further execution of the program as soon as it encounters and error., while include() only produces a WARN
Question 8 :
What are the differences between include and include_once
A
The include_once() statement includes and evaluates the specified file during the execution of the script. This is a behavior similar to the include() statement, with the only difference being that if the code from a file has already been included, it wil
Question 9 :
What is Superglobals in PHP
A
In order to store information coming from both the client and server and pertaining to the current execution of a script PHP has a series of arrays defined these arrays are called superglobals.There 9 superglobal arrays. $GLOBALS[] : The complete list o
Question 10 :
What Are The Different Types Of Errors In PHP
Question 11 :
What is the difference between $message and $$message
Question 12 :
What does a special set of tags = and ?> do in PHP
A
The output is displayed directly to the browser.
Question 13 :
How can we define a constant in PHP
A
Via define() directive, like define ("NEWCONSTANT", 100);
Question 14 :
What is urlencode and urldecode
A
urlencode() returns the URL encoded version of the given string. URL coding converts special characters into % signs followed by two hex digits. urldecode() returns the URL decoded version of the given string.
Question 15 :
What is the function to upload a file in PHP
Model Question Papers
Union Bank of India PO 2008 English Language
Binder Grade II Logical Reasoning & Mathematics
KSIE Junior Assistant Logical Reasoning & Mathematics
Kerala PSC LDC Thrissur 2003 Logical Reasoning & Mathematics
Kerala PSC LDC Palakkad 2003 Logical Reasoning & Mathematics
×
Invite your friends to attend test
Invite Now
Help & Support
About Us
Contact Us
Terms of Service