• 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 calc($price, $tax="") {<br/>$total = $price + ($price * $tax);<br/>echo "$total";<br/>}<br/>calc(42);

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>$str = addslashes('What does "yolo" mean?');<br/>echo($str);

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

. . . . . converts the keys of an array into values and the values into keys.

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>function onespan>() {<br/>define("const","I am awesome!");<br/>echo constant("const");<br/>}<br/>one();

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>function a() {<br/>function b() {<br/>echo 'I am bb';<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/>echo ucwords("i love all country");

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>$str = "Hello world. It's a beautiful day.";<br/>print_r (explode(" ",$str));

TRUE ANSWER : ?
YOUR ANSWER : ?

Returning values from functions may include .....

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>$x = 75;<br/>$y = 25;<br/>function addition()<br/>{<br/>$GLOBALS['z'] = $GLOBALS['x'] + $GLOBALS['y'];<br/>}<br/>addition();<br/>echo $z;

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
↑