• 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

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

TRUE ANSWER : ?
YOUR ANSWER : ?

Which of the following PHP functions can be used for generating unique id’s?

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

What will be the output of the following PHP code ?<br/>function mine($num)<br/>{<br/>$num = 2 + $num;<br/>echo $num;<br/>}<br/>mine(3);

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

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

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 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 sum($num1, $num2) {<br/>$total = $num1 + $num2;<br/>echo "cos($total)";<br/>}<br/>sum(5,-5);

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
↑