Q.1
Which of the following function is used to pick one or more random values from PHP Array?
  • array_random()
  • Rand_array()
  • array_rand()
  • Random_array()
Q.2
Which of the following is an associative array containing session variables available to the current script
  • $_COOKIE
  • $GLOBALS
  • $_SERVER
  • $_SESSION
Q.3
Which of the following method is suitable when you need to send larger form submissions?
  • GET
  • POST
  • Both GET and POST
  • There is no direct way for larger form. You need to store them in a file and retrieve
Q.4
In PHP a variable needs to be declare before assign
  • True
  • False
  • Depends on website
  • Depends on server
Q.5
Web Service Characteristics . Which one is false?
  • Fast; loads just the data instead of a whole web page
  • Flexible; you’re not limited to using only a web page, you can use a desktop or mobile app
  • Tightly coupled; changing one part might change the others
  • Unopinionated; you’re giving the users a choice on how to use your data
Q.6
What type of language is PHP
  • Client Side
  • Server Side
  • Browser Side
  • Web Side
Q.7
Which version of PHP introduced Try/catch Exception?
  • PHP 4
  • PHP 3
  • PHP 6
  • PHP 5 and later
Q.8
PHP code is embedded directly into XHTML document?
  • Yes
  • No
Q.9
Select the correct output
  • Sam is the brother of Bob and Jack
  • Sam is the brother of Bob and Bob
  • Sam is the brother of Jack and Bob
  • Error
0 h : 0 m : 1 s