Q. Which version of PHP introduced the instance of keyword?

  • (A) PHP 5
  • (B) PHP 6
  • (C) PHP 7
  • (D) PHP 8
πŸ’¬ Discuss
βœ… Correct Answer: (A) PHP 5

Q. There are ............ error levels are available in PHP?

  • (A) 15
  • (B) 16
  • (C) 17
  • (D) 18
πŸ’¬ Discuss
βœ… Correct Answer: (B) 16

Q. What does SPL stands for in Php?

  • (A) Source PHP List
  • (B) Standard PHP List
  • (C) Standard PHP Library
  • (D) None of the Above
πŸ’¬ Discuss
βœ… Correct Answer: (C) Standard PHP Library

Q. Which of the following is the latest version of php?

  • (A) 7.1
  • (B) 7.2
  • (C) 7.3
  • (D) 7.4
πŸ’¬ Discuss
βœ… Correct Answer: (B) 7.2

Q. Which of the following is the Release date of latest version (7.2) of php?

  • (A) 27 November 2017.
  • (B) 28 November 2017.
  • (C) 29 November 2017.
  • (D) 30 November 2017.
πŸ’¬ Discuss
βœ… Correct Answer: (D) 30 November 2017.

Q. Which statement will output $lfc on the screen?

  • (A) cho "$lfc";
  • (B) echo "$$lfc";
  • (C) echo "/$lfc";
  • (D) echo "$lfc;";
πŸ’¬ Discuss
βœ… Correct Answer: (A) cho "$lfc";

Q. What will be the output of the following PHP code ?

Code:
<?php
$num = 20;
$num = $num++ + 25; 
echo $num; 
?>
  • (A) Nothing
  • (B) 20
  • (C) 25
  • (D) 45
πŸ’¬ Discuss
βœ… Correct Answer: (D) 45

Q. What will be the output of the following PHP code ?

Code:
<?php
$num = 10;
$num = ($num + 15)++; 
echo $num; 
?>
  • (A) 10
  • (B) 15
  • (C) Error
  • (D) 16
πŸ’¬ Discuss
βœ… Correct Answer: (C) Error

Q. What will be the output of the following PHP code ?

Code:
<?php
$num = 10 + ++15;
echo $num; 
?>
  • (A) 10
  • (B) 15
  • (C) Nothing
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (D) Error

Q. What will be the output of the following PHP code ?

Code:
<?php
echo 6 * 10 / 4 + 10;
?>
  • (A) Error
  • (B) 25
  • (C) 26
  • (D) 10
πŸ’¬ Discuss
βœ… Correct Answer: (B) 25