PHP MCQ Questions and Answers

Practice Mode
Showing 10 of 130 questions
Q81
Is it possible to submit a form with out a submit button?
  • A Yes
  • B No
Answer: Option A
Q82
Full form of PHP
  • A PreHypertextProcessor
  • B HypertextPreprocessor
  • C Hypertext Postprocessor
  • D PostHypertextProcessor
Answer: Option B
Q83
What is the expansion of LAMP?
  • A Linux And Mysql Php
  • B Linux Apache Mysql Php
Answer: Option B
Q84
In php Which method is used to getting browser properties?
  • A $_SERVER['HTTP_USER_AGENT'];
  • B $_SERVER['PHP_SELF']
  • C $_SERVER['SERVER_NAME']
  • D $_SERVER['HTTP_VARIENT']
Answer: Option A
Q85
Which of the following function is used to pick one or more random values from PHP Array?
  • A array_rand()
  • B array_random()
  • C Random_array()
  • D Rand_array()
Answer: Option A
Q86
<?php $x=array(1,3,2,3,7,8,9,7,3); $y=array_count_values($x); echo $y[8];
  • A 43
  • B 1
  • C 8
  • D 6
Answer: Option B
Q87
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 ?
  • A phptutor/index.php
  • B /phptutor/index.php
  • C c:/apache/htdocs/phptutor/index.php
  • D index.php
Answer: Option B
Q88
Which operator is used to concatenate two strings in php?
  • A dot operator (.)
  • B plus operator (+)
Answer: Option A
Q89
Are there regular expressions in PHP?
  • A Yes - regular expressions use Perl-like conventions
  • B Yes - PHP supports two different types of regular expressions: POSIX-extended and Perl-Compatible Regular Expressions (PCRE).
  • C Yes - regular expressions use the POSIX standard
  • D No - PHP uses "glob" style matching only
Answer: Option B
Q90
In PHP, which of the following function is used to insert content of one php file into another php file before server executes it
  • A include[]
  • B #include()
  • C include()
  • D #include{}
Answer: Option C
Questions and Answers for Competitive Exams Various Entrance Test