Choose The Correct Answers<\/span><\/p>\nQuestion 1.
\nWhen you use the $_GET variable to collect data, the data is visible to.
\na) none
\nb) only you
\nc) everyone
\nd) selected few
\nAnswer:
\nc) everyone<\/p>\n
<\/p>\n
Question 2.
\nWhich one of the following should not be used while sending passwords or other sensitive information?
\na) GET
\nb) POST
\nc) REQUEST
\nd) NEXT
\nAnswer:
\na) GET<\/p>\n
Question 3.
\nWhich directive determines whether PHP scripts on the server can accept file up\u00acloads?
\na) file_uploads
\nb) file_upload
\nc) file_input
\nd) fiie_intake
\nAnswer:
\na) file_uploads<\/p>\n
Question 4.
\nIn HTML form cinput type=”text”> is used for
\na) One line text
\nb) Block of text
\nc) One paragraph
\nd) None
\nAnswer:
\na) One line text<\/p>\n
<\/p>\n
Question 5.
\nHTML classes that are already defined and allow us to apply styles on it are called as
\na) Pseudo classes
\nb) Css classes
\nc) Javascript classes
\nd) None
\nAnswer:
\nb) Css classes<\/p>\n
Question 6.
\nIf you would like to read a file character by character which function do you use?
\na) fopen ()
\nb) fread ()
\nc) fgetc ()
\nd) file ()
\nAnswer:
\nc) fgetc ()<\/p>\n
Question 7.
\nPHP is a ……………… typed language.
\na) User
\nb) Loosely
\nc) Server
\nd) System
\nAnswer:
\nb) Loosely<\/p>\n
Question 8.
\nWhat does fopen() function do in PHP?
\na) It used to open files in PHP
\nb) It used to open Remote Server
\nc) It used to open folders in PHP
\nd) It used to open Remote Computer
\nAnswer:
\na) It used to open files in PHP<\/p>\n
<\/p>\n
Question 9.
\nHow PHP files can be accessed?
\na) Through Web Browser
\nb) Through HTML files
\nc) Through Web Server
\nd) All of Above
\nAnswer:
\na) Through Web Browser<\/p>\n
Question 10.
\nWhich of the following functions reads the entire contents of a file?
\na) fgets()
\nb) file_get_contents()
\nc) fread()
\nd) readfile()
\nAnswer:
\nb) file_get_contents()<\/p>\n
Part II<\/span><\/p>\nShort answers<\/span><\/p>\nQuestion 1.
\nDefine HTML form controls.
\nAnswer:<\/p>\n