• 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 is the right way of defining a function in PHP?

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/>function string()<br/>{<br/>echo strstr("Hello world!", 111);<br/>}<br/>string();

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 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/>$var = 10;<br/>function one()<br/>{<br/>echo $var;<br/>}<br/>one();

TRUE ANSWER : ?
YOUR ANSWER : ?

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

TRUE ANSWER : ?
YOUR ANSWER : ?

Which one of the following PHP functions can be used to find files?

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>echo strtr("Hilla Warld","ia","eo");

TRUE ANSWER : ?
YOUR ANSWER : ?

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

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
↑