Web Programming (3160713) MCQs

MCQs of Server Side Programmingwith PHP

Showing 31 to 40 out of 49 Questions
31.
Which one of the following function is capable of reading a specific number of characters from a file?
(a) fgets
(b) fget
(c) fileget
(d) filegets
Answer:

Option (a)

32.
The date() function returns ___ representation of the current date and/or time.
(a) Integer
(b) String
(c) Boolean
(d) Float
Answer:

Option (b)

33.
Which one of the following function outputs the contents of a string variable to the specified resource?
(a) filewrite
(b) fwrite
(c) filewrites
(d) fwrites
Answer:

Option (b)

34.
which is not a predefined array in PHP
(a) $_GET
(b) $_SET
(c) $_POST
(d) $_REQUEST
Answer:

Option (b)

35.
Which function is used to remove all HTML tags from a string passed to a form?
(a) remove_tags
(b) strip_tags
(c) tags_strip
(d) tags_remove
Answer:

Option (b)

36.
Which directive determines whether PHP scripts on the server can accept file uploads?
(a) file_uploads
(b) file_upload
(c) file_input
(d) file_intake
Answer:

Option (a)

37.
Which one of the following is the very first task executed by a session enabled page?
(a) Delete the previous session
(b) Start a new session
(c) Check whether a valid session exists
(d) Handle the session
Answer:

Option (c)

38.
Which one of the following is the default PHP session name?
(a) PHPSESSID
(b) PHPSESID
(c) PHPSESSIONID
(d) PHPIDSESS
Answer:

Option (a)

39.
Which function is used to destroy session data?
(a) session_destroy
(b) session_change
(c) session_remove
(d) session_unset
Answer:

Option (a)

40.
PHP is an example of ___________ scripting language.
(a) Server-side
(b) Client-side
(c) Browser-side
(d) in-side
Answer:

Option (a)

Showing 31 to 40 out of 49 Questions