• 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

Which one of the following functions can be used to compress a string?

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 : ?

Output will be:$array = array(0, 1, 2);$array = array_pad($array, -6, ‘NEW’);

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>function start($string)<br/>{<br/>if ($string < 45)<br/>return 20;<br/>else<br/>return 40;<br/>}<br/>$t = start(90);<br/>if ($t < 20)<br/>{<br/>echo "Have a good day!";<br/>}<br/>else<br/>{<br/>echo "Have a good night!";}

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>function constant()<br/>{<br/>define("GREETING", "Welcome to Narnia");<br/>echo greeting;<br/>}

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>echo hex2bin("48656c6c6f20576f726c6421");

TRUE ANSWER : ?
YOUR ANSWER : ?

A function in PHP which starts with ______ (double underscore) is know as.

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>function addFunction($num1, $num2)<br/>{<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 happen in this function call?<br/>function calc($price, $tax) {<br/>$total = $price + $tax;<br/>}<br/>$pricetag = 15;<br/>$taxtag = 3;<br/>calc($pricetag, $taxtag);

TRUE ANSWER : ?
YOUR ANSWER : ?

phpinfo() will display about?<br/>1. OS version information<br/>2. PHP installation<br/>3. Variables<br/>4. HTTP headers

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
↑