Bachelor Of Computer Science


CS: PHP MCQs - Subtopic

Cookies MCQ with Answers

Cookies Multiple Choice Questions (MCQ) to practice cookies quiz answers PDF, cookies worksheets for online degrees. Solve working with cookies and sessions Multiple Choice Questions and Answers (MCQs), "Cookies Quiz Questions" and answers for top online computer science programs. Learn simple session code, home grown alternatives, how sessions work in php test prep for master's degree in computer science.

"In PHP, cookies are set by using the" Multiple Choice Questions (MCQ) on cookies with choices setcookie ( ) function, set ( ) function, cookie_set ( ) function, and none of them for top online computer science programs. Solve cookies quiz questions for merit scholarship test and certificate programs for BSc computer science.

MCQs on Cookies


In PHP, cookies are set by using the

setcookie ( ) function
set ( ) function
cookie_set ( ) function
None of them


Name, value, expire, patrh, httponly, domain, secure all of these are arguments of

session ( ) function
setcookie ( ) function
reset_cookie ( ) function
None of them


The secure ( ) argument in setcookie function returns result

In integer form
In string form
In boolean form
None of them


In PHP4.1 and later versions, the cookies name/value pair are added to the

Superglobal array
Global function
Both A and B