Dynamic Web Page Development (3350702) MCQs

MCQs of User data input through Forms

Showing 41 to 46 out of 46 Questions
41.

When you want to store user data in a session use the _______ array.

(જ્યારે તમે સત્રમાં વપરાશકર્તા ડેટા સંગ્રહિત કરવા માંગતા હો ત્યારે _______ એરેનો ઉપયોગ કરો.)

(a)

$_SESSION

(b)

$_$SESSION

(c)

$SESSION

(d)

$_SESSIONS

Answer:

Option (a)

42.

The setcookie() function must appear _______ the <html> tag.

(setcookie() ફંક્શન  <html> ટેગની _______  દેખાવા જોઈએ.)

(a)

AFTER

(પછી)

(b)

BEFORE

(પહેલા)

(c)

Anywhere

(ગમે ત્યાં)

(d)

End of the file

(ફાઇલની endમાં)

Answer:

Option (b)

43.

Name, expire time, value, path, httponly, domain, secure all of these are arguments of which function?

(Name, expire time, value, path, httponly, domain, secure આ બધી શેની argument છે?)

(a)

session( ) function

(b)

setcookie( ) function

(c)

reset_cookie( ) function

(d)

create_cookie( ) function

Answer:

Option (b)

44.

______ destroys all of the data associated with the current session.

(______ current session સાથે સંકળાયેલ તમામ ડેટાને destroy કરે છે.)

(a)

sessions_destroy() 

(b)

session_delete() 

(c)

session_remove()

(d)

session_destroy() 

Answer:

Option (d)

45.

What is the correct syntax of cookie?

(Cookieની સાચી syntax શું છે?)

(a)

setcookie(value, name, expire time, path, domain, secure, httponly)

(b)

setcookie(expire time, name, value, path, domain, secure, httponly)

(c)

setcookie(path, name, value, expire time, domain, secure, httponly)

(d)

setcookie(name, value, expire time, path, domain, secure, httponly)

Answer:

Option (d)

46.

The secure() argument in setcookie function returns result

(setcookie ફંક્શનમાં secure() argument _______ result આપે છે.)

(a)

In interger form

(b)

In string form

(c)

In boolean form

(d)

In object form

Answer:

Option (c)

Showing 41 to 46 out of 46 Questions