Q.1
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
Q.2
Variables always start with a ........ in PHP
Q.3
String values must be enclosed in ......
Q.4
PHP is an open source software.
Q.5
Which of the following is not valid PHP code?
Q.6
PHP runs on different platforms (Windows, Linux, Unix, etc.)
Q.7
What will be the output of the following PHP code?
<?php
$user = array("Ashley", "Bale", "Shrek", "Blank");
for ($x=0; $x < count($user); $x++)
{
  if ($user[$x] == "Shrek") continue;
  printf ($user[$x]); 
}
?>
Q.8
If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?
Q.9
What is the value of $a and $b after the function call?
<?php
function doSomething( &$arg ) 
{
  $return = $arg;
  $arg += 1;
  return $return;	
}
$a = 3;
$b = doSomething( $a );
?>
Q.10
Which of the below symbols is a newline character?
Q.11
What will be the output of the following PHP code?
<?php
$num = 10;
echo 'What is her age? \n She is $num years old';
?>
Q.12
Which of the conditional statements is/are supported by PHP? 1. if statements 2. if-else statements 3. if-elseif statements 4. switch statements
Q.13
Which of the below statements is equivalent to $add += $add ?
Q.14
Which statement will output $x on the screen?
Q.15
What will be the output of the following code?
<?php
function track() 
{
	static $count = 0;
	$count++;
	echo $count;
}
track();
track();
track();
?>
Q.16
Who is the father of PHP?
Q.17
How does the identity operator === compare two values?
Q.18
What will be the output of the following PHP code?
<?php
$team = "arsenal";
switch ($team) 
{
case "manu":
  echo "I love man u";
case "arsenal":
  echo "I love arsenal";
case "manc":
  echo "I love manc"; 
}
?>
Q.19
Which of the looping statements is/are supported by PHP?
1. for loop
2. while loop
3. do-while loop
4. foreach loop
Q.20
What will be the output of the following PHP code?
<?php
$a = "clue";
$a .= "get";
echo "$a";
?>
0 h : 0 m : 1 s