• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

PHP FUNCTIONS QUIZ

What will be the output of the following PHP code?<br/>function addFunction($num1, $num2) {<br/>$sum = $num1 + $num2;<br/>return $sum;<br/>}<br/>$return_value = addFunction(10, 20);<br/>echo "Returned value from the function : $return_value"

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>function do($myString) {<br/>echo strpos($myString, "donkey",0);<br/>}<br/>do("The donkey looks like a horse.");

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$var = 10;<br/>function one()<br/>{<br/>echo $var;<br/>}<br/>one();

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>echo str_pad("Salad", 5)." is good for health.";

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>$op2 = "blabla";<br/>function foo($op1) {<br/>echo $op1;<br/>echo $op2;<br/>}<br/>foo("hello");

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>function test($int)<br/>{<br/>if ($int == 1)<br/>echo "This Works";<br/>if ($int == 2)<br/>echo "This Too Seems To Work";<br/>}<br/>test(1);<br/>TEST(2);

TRUE ANSWER : ?
YOUR ANSWER : ?

The arguments in a function are evaluated from .....

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>function email()<br/>{<br/>$email = ’contact@examians.com’;<br/>$new = strstr($email, ‘@');<br/>echo $new;<br/>}<br/>email();

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>function time($string)<br/>{<br/>echo strtr("Towe Pa55", "ow5", $string);<br/>}<br/>time("ims");

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>$title = "O'malley wins the heavyweight championship!";<br/>echo ucwords($title);

TRUE ANSWER : ?
YOUR ANSWER : ?
MORE MCQ

QUIZ STATS

  • 0
  • 0

DOWNLOAD APP

  • APPLE
    from app store
  • ANDROID
    from play store

SEARCH

LOGIN HERE


  • GOOGLE

FIND US

  • 1.70K
    FOLLOW US
  • EXAMIANSSTUDY FOR YOUR DREAMS.
  • SUPPORT :SUPPORT EMAIL ACCOUNT : examians@yahoo.com

OTHER WEBSITES

  • GUJARATI MCQ
  • ACCOUNTIANS

QUICK LINKS

  • HOME
  • QUIZ
  • PRIVACY POLICY
  • DISCLAIMER
  • TERMS & CONDITIONS
  • CONTACT US
↑