Q. Which PHP function is used to find files?

  • (A) file()
  • (B) fold()
  • (C) glob()
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) glob()

Q. Which of the following variables is not a predefined variable in PHP?

  • (A) $get
  • (B) $post
  • (C) $request
  • (D) $ask
πŸ’¬ Discuss
βœ… Correct Answer: (D) $ask

Q. Which of the following function is used to compress a string?

  • (A) zip()
  • (B) compress()
  • (C) zip_compress()
  • (D) gzcompress()
πŸ’¬ Discuss
βœ… Correct Answer: (D) gzcompress()

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

Code:
<?php
echo "Hello world </br> welcome to mcqbuddy";
?>
  • (A) Hello World
  • (B) Hello World!
  • (C) Hello World! Welcome to mcqbuddy
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) Hello World! Welcome to mcqbuddy

Q. Which of the following is used to create a session?

  • (A) $_SESSION[]
  • (B) isset() function
  • (C) session_start() function
  • (D) session_destroy() function
πŸ’¬ Discuss
βœ… Correct Answer: (C) session_start() function

Q. The term PHP is an acronym for PHP:_______________.

  • (A) Hypertext Preprocessor
  • (B) B. Hypertext multiprocessor
  • (C) C. Hypertext markup Preprocessor
  • (D) Hypertune Preprocessor
πŸ’¬ Discuss
βœ… Correct Answer: (A) Hypertext Preprocessor

Q. PHP is a ____________ language?

  • (A) user-side scripting
  • (B) client-side scripting
  • (C) server-side scripting
  • (D) Both B and C
πŸ’¬ Discuss
βœ… Correct Answer: (C) server-side scripting

Q. Who among this is the founder of php language?

  • (A) Tim Berners-Lee
  • (B) Brendan Eich
  • (C) Guido van Rossum
  • (D) Rasmus Lerdorf
πŸ’¬ Discuss
βœ… Correct Answer: (D) Rasmus Lerdorf

Q. In which year php was created?

  • (A) 1993
  • (B) 1994
  • (C) 1995
  • (D) 1996
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1994

Q. Which of the following is the correct syntax of php?

  • (A) <?php >
  • (B) <php >
  • (C) ?php ?
  • (D) <?php ?>
πŸ’¬ Discuss
βœ… Correct Answer: (D) <?php ?>