Web Programming (3160713) MCQs

MCQs of Server Side Programmingwith PHP

Showing 41 to 49 out of 49 Questions
41.
Which of the following is not true?
(a) PHP can be used to develop web applications.
(b) PHP makes a website dynamic
(c) PHP applications can not be compile
(d) PHP can not be embedded into html.
Answer:

Option (d)

42.
Which of the following method sends input to a script via a URL?
(a) GET
(b) POST
(c) BOTH
(d) NONE
Answer:

Option (a)

43.
Which of the following function returns a text in title case from a variable?
(a) ucwords($var)
(b) upper($var)
(c) toupper($var)
(d) ucword($var)
Answer:

Option (a)

44.
Which of the following function returns the number of characters in a string variable?
(a) count($variable)
(b) len($variable)
(c) strcount($variable)
(d) strlen($variable)
Answer:

Option (d)

45.
Array with string index in php is called as ______
(a) numeric array
(b) string array
(c) associative array
(d) generic array
Answer:

Option (c)

46.
How to redirect to other page in PHP
(a) using header fuction
(b) using location object
(c) using Response.redirect method
(d) all of above
Answer:

Option (a)

47.
How can we identify browser in PHP
(a) using $_BROWSER['name']
(b) using $_SERVER['NAVIGATOR_NAME']
(c) using $_SERVER['HTTP_USER_AGENT']
(d) using $_BROWSER['version']
Answer:

Option (c)

48.
What is default access specifiers in PHP
(a) default
(b) protected
(c) private
(d) public
Answer:

Option (d)

49.
How to set cookie in PHP
(a) using $_COOKIE
(b) using setcookie method
(c) using $_SETCOOKIE
(d) none of above
Answer:

Option (b)

Showing 41 to 49 out of 49 Questions