Q. Early------- include PHPlib, Horde, and Pear. Most of the big names now launched in 2005 or later.

  • (A) php framework
  • (B) ORM
  • (C) phplib
  • (D) command link interface
πŸ’¬ Discuss
βœ… Correct Answer: (C) phplib

Q. Laravel,Symfony,CodeIgniter,Zend are the example of PHP frameworks.

  • (A) yes
  • (B) no
  • (C) can not say
  • (D) none of these
πŸ’¬ Discuss
βœ… Correct Answer: (A) yes

Q. ----------- helps to developed web page using a PHP framework.

  • (A) Object-Relational Mapping
  • (B) object random map
  • (C) Model View Controller
  • (D) command link interface
πŸ’¬ Discuss
βœ… Correct Answer: (D) command link interface

Q. Controller functions are used to access and update the database in php framework.

  • (A) yes
  • (B) no
  • (C) can not say
  • (D) none of these
πŸ’¬ Discuss
βœ… Correct Answer: (A) yes

Q. PHP frameworks typically follow the--------design pattern.

  • (A) Object-Relational Mapping
  • (B) object random map
  • (C) Model View Controller
  • (D) command link interface
πŸ’¬ Discuss
βœ… Correct Answer: (C) Model View Controller

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

Code:
<?php
$url = "ruchi@sharma.com";
echo ltrim(strstr($url, "@"),"@");
?>
  • (A) ruchi@sharma.com
  • (B) ruchisharma.com
  • (C) ruchi.com
  • (D) sharma.com
πŸ’¬ Discuss
βœ… Correct Answer: (D) sharma.com

Q. Which one of the following functions finds the last occurrence of a string, returning its numerical position?

  • (A) strrpos()
  • (B) strlast()
  • (C) strlastpos()
  • (D) strpos()
πŸ’¬ Discuss
βœ… Correct Answer: (A) strrpos()

Q. Which one of the following functions can be used to concatenate array elements to form a single delimited string?

  • (A) concat()
  • (B) concatenate()
  • (C) explode()
  • (D) implode()
πŸ’¬ Discuss
βœ… Correct Answer: (D) implode()

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

Code:
<?php
$Message = "this is important message...";
echo ucwords($Message);
?>
  • (A) Error
  • (B) This Is Important Message...
  • (C) Nothing
  • (D) this is important message...
πŸ’¬ Discuss
βœ… Correct Answer: (B) This Is Important Message...

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

Code:
<?php
echo str_pad("Salad", 10)." is good.";
?>
  • (A) Interview was good.
  • (B) was Interview good
  • (C) good was interview
  • (D) Nothing
πŸ’¬ Discuss
βœ… Correct Answer: (A) Interview was good.