Top 350+ Solved Advance PHP MCQ Questions Answer

From 151 to 165 of 320

Q. ------properties can be called directly - without creating an instance of a class.Sol:

a. static

b. self

c. traits

d. single inheritance

  • a. static

Q. An iterable is any value which can be looped through with a-----loop.Sol:

a. foeach()

b. self

c. traits

d. single inheritance

  • a. foeach()

Q. The-----keyword can be used as a data type of a function argument or as the return typeof a function:Sol:

a. foeach()

b. self

c. iterable

d. single inheritance

  • c. iterable

Q. ------is a superglobal that holds information regarding HTTP headers, path and scriptlocation etc.Sol:

a. $_SERVER

b. SERVER_ADDR

c. SERVER_NAME

d. QUERY_STRING

  • a. $_SERVER

Q. All the server and execution environment related information is available in this------Sol:

a. associative array

b. SERVER_ADDR

c. SERVER_NAME

d. QUERY_STRING

  • a. associative array

Q. -------This property of array returns The IP address of the server under which the currentscript is executing.Sol:

a. $_SERVER

b. SERVER_ADDR

c. SERVER_NAME

d. QUERY_STRING

  • b. SERVER_ADDR

Q. -------Name of server hostunder which the current script is executingSol:

a. $_SERVER

b. SERVER_ADDR

c. SERVER_NAME

d. QUERY_STRING

  • c. SERVER_NAME

Q. --------HTTP request method used for accessing a URL, such as POST, GET, POST,PUT or DELETE.Sol:

a. REQUEST_METHOD

b. DOCUMENT_ROOT

c. REMOTE_ADDR

d. SERVER_PORT

  • a. REQUEST_METHOD

Q. -----------returns name of directory on server that is configured as document rootSol:

a. REQUEST_METHOD

b. DOCUMENT_ROOT

c. REMOTE_ADDR

d. SERVER_PORT

  • b. DOCUMENT_ROOT

Q. ------------IP address of machine from which the user is viewing the current pageSol:

a. REQUEST_METHOD

b. DOCUMENT_ROOT

c. REMOTE_ADDR

d. SERVER_PORT

  • c. REMOTE_ADDR

Q. -------port number on which the web server is listening to incoming requestSol:

a. REQUEST_METHOD

b. DOCUMENT_ROOT

c. REMOTE_ADDR

d. SERVER_PORT

  • d. SERVER_PORT

Q. there are two ways the browser client can send information to the web server .The -------------Method & The---------- MethodSol:

a. info and pre method

b. Get and post method

c. implement and extend method

d. none of these.

  • a. info and pre method
Subscribe Now

Get All Updates & News