PHP QUIZ
1 .
Which function gives us the number of affected entries by a query?

Correct Answer : Option (D)

mysqli_affected_rows()
  Show Answer
2 .
What is the default upload file size in php?

Correct Answer : Option (B)

2 MB
  Show Answer
3 .
Which of the following method can be used to close a MySQL database using PHP ?

Correct Answer : Option (A)

mysql_close()
  Show Answer
4 .
In PHP the error control operator is _______ ?

Correct Answer : Option (C)

@
  Show Answer
5 .
What is the output ?
<?php 
	define("x","5"); 
	$x=x+10; 
	echo x; 
?>​

Correct Answer : Option (A)

5
  Show Answer
6 .
What is the out put.
<?php 
  $x=array(1,3,2,3,7,8,9,7,3); 
  $y=array_count_values($x); 
  echo $y[9]; 
?>​

Correct Answer : Option (C)

3
  Show Answer
7 .
What will be printed ?
if (null === false) {
  echo 'true';
} else {
  echo 'false';
}​

Correct Answer : Option (B)

false 
  Show Answer
8 .
What is the perfect output ?
<?php
  $RESULT = 11 + 011 + 0x11;
  echo "$RESULT";
?>​

Correct Answer : Option (D)

37
  Show Answer
9 .
What is the difference between echo and print?

Correct Answer : Option (C)

Echo can take multiple parameters where as print cannot
  Show Answer
10 .
The date() function returns ___ representation of the current date and/or time.

Correct Answer : Option (B)

String
  Show Answer