PHP QUIZ
1 .
What will be the value of $var?
$var = 1 / 2;​

Correct Answer : Option (B)

0.5
  Show Answer
2 .
What will be printed?
<?php
  $str = 'a\\b\n'; 
  echo $str;
?>​

Correct Answer : Option (C)

a\b\n
  Show Answer
3 .
Which of the following function returns the number of characters in a string variable ?

Correct Answer : Option (C)

strlen($variable) 
  Show Answer
4 .
How do you get information from a form when method is "post"?

Correct Answer : Option (B)

$_POST[]; 
  Show Answer
5 .
In php which fo the following method is used to getting browser properties ?

Correct Answer : Option (D)

$_SERVER[‘HTTP_USER_AGENT’]; 
  Show Answer
6 .
In PHP which of the following gives a string containing PHP script file name in which it is called ?

Correct Answer : Option (A)

$_PHP_SELF
  Show Answer
7 .
Which superglobal variable holds information about headers, paths, and script locations?

Correct Answer : Option (C)

$_SERVER
  Show Answer
8 .
Which of the following type of variables are floating-point numbers, like 3.14159 or 49.1 ?

Correct Answer : Option (D)

Doubles 
  Show Answer
9 .
In PHP which of the following method sends input to a script through(via) a URL ?

Correct Answer : Option (A)

Get
  Show Answer
10 .
What is the correct way to add 1 to the $count variable?

Correct Answer : Option (A)

$count++;
  Show Answer