• 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 2myfunc()<br/>{<br/>echo "Hello World";<br/>}<br/>2myfunc();

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>function calc($num1, $num2)<br/>{<br/>$total = $num1 * $num2;<br/>return $total; <br/>}<br/>$result = calc(42, 0);<br/>echo $result;

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>function a() {<br/>function b() {<br/>echo 'I am b';<br/>}<br/>echo 'I am a';<br/>}<br/>b();<br/>a();

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

It is always necessary to use parentheses with the print function.

TRUE ANSWER : ?
YOUR ANSWER : ?

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

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>function a() {<br/>function b() {<br/>echo 'I am b';<br/>}<br/>echo 'I am a';<br/>}<br/>a();<br/>a();

TRUE ANSWER : ?
YOUR ANSWER : ?

The below statement will return.$Var = substr(""abcdef"", -4, 1);

TRUE ANSWER : ?
YOUR ANSWER : ?

. . . . returns a new DateTime object.

TRUE ANSWER : ?
YOUR ANSWER : ?

strlen() returns the length of the string on success and . . . . if the string is empty.

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
↑