PHP MCQ Question and Answer

PHP MCQ Question and Answer
81. Is it possible to submit a form with out a submit button?
  • Yes
  • No
Show Answer
82. Full form of PHP
  • PreHypertextProcessor
  • HypertextPreprocessor
  • Hypertext Postprocessor
  • PostHypertextProcessor
Show Answer
83. What is the expansion of LAMP?
  • Linux And Mysql Php
  • Linux Apache Mysql Php
Show Answer
84. In php Which method is used to getting browser properties?
  • $_SERVER['HTTP_USER_AGENT'];
  • $_SERVER['PHP_SELF']
  • $_SERVER['SERVER_NAME']
  • $_SERVER['HTTP_VARIENT']
Show Answer
85. Which of the following function is used to pick one or more random values from PHP Array?
  • array_rand()
  • array_random()
  • Random_array()
  • Rand_array()
Show Answer
86. <?php
$x=array(1,3,2,3,7,8,9,7,3);
$y=array_count_values($x);
echo $y[8];
  • 43
  • 1
  • 8
  • 6
Show Answer
87. Assume that your php file 'index.php' in location c:/apache/htdocs/phptutor/index.php. If you used $_SERVER['PHP_SELF'] function in your page, then what is the return value of this function ?
  • phptutor/index.php
  • /phptutor/index.php
  • c:/apache/htdocs/phptutor/index.php
  • index.php
Show Answer
88. Which operator is used to concatenate two strings in php?
  • dot operator (.)
  • plus operator (+)
Show Answer
89. Are there regular expressions in PHP?
  • Yes - regular expressions use Perl-like conventions
  • Yes - PHP supports two different types of regular expressions: POSIX-extended and Perl-Compatible Regular Expressions (PCRE).
  • Yes - regular expressions use the POSIX standard
  • No - PHP uses "glob" style matching only
Show Answer
90. In PHP, which of the following function is used to insert content of one php file into another php file before server executes it
  • include[]
  • #include()
  • include()
  • #include{}
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test