Q. The PHP date() function returns the ____.

  • (A) Current date and time of the localhost
  • (B) Current date and time of the server
  • (C) Current UTC time
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Current date and time of the server

Q. Which PHP function is used to add days, months, years, hours, minutes, and seconds to a date?

  • (A) add()
  • (B) add_date()
  • (C) date_add()
  • (D) add_dates()
πŸ’¬ Discuss
βœ… Correct Answer: (C) date_add()

Q. ______ is used to unset a variable in PHP ?

  • (A) delete()
  • (B) unset()
  • (C) unlink()
  • (D) delete();
πŸ’¬ Discuss
βœ… Correct Answer: (B) unset()

Q. How many error levels are available in PHP ?

  • (A) 20
  • (B) 4
  • (C) 19
  • (D) 16
πŸ’¬ Discuss
βœ… Correct Answer: (D) 16

Q. In which version of PHP E_STRICT Error level is introduced ?

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

Q. Which PHP function modifies the timestamp?

  • (A) date_modify()
  • (B) modify_timestamp()
  • (C) date_stamp()
  • (D) stamp()
πŸ’¬ Discuss
βœ… Correct Answer: (A) date_modify()

Q. Which PHP function is used to get the current Unix timestamp with microseconds?

  • (A) date_microtime()
  • (B) microtime()
  • (C) mtime()
  • (D) microsecondstime()
πŸ’¬ Discuss
βœ… Correct Answer: (B) microtime()

Q. Which function in PHP is used to get the length of string variable?

  • (A) count()
  • (B) strcount
  • (C) strlen
  • (D) len
πŸ’¬ Discuss
βœ… Correct Answer: (C) strlen

Q. Who is the father of PHP?

  • (A) Drek Kolkevi
  • (B) Rasmus Lerdorf
  • (C) Willam Makepiece
  • (D) List Barely
πŸ’¬ Discuss
βœ… Correct Answer: (B) Rasmus Lerdorf

Q. Type Hinting was introduced in which version of PHP?

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