• 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 a() {<br/>function b() {<br/>echo 'I am b';<br/>}<br/>echo 'I am a';<br/>}<br/>a();<br/><br/>a();

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>function TV($string)<br/>{<br/>echo "my favourite TV show is ".$string;<br/>function b() <br/>{<br/>echo " I am here to spoil this code";<br/>}<br/>}<br/>a("Sherlock");<br/>b();

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

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 uppercase($string) {<br/>echo ucwords($string);<br/>}<br/>$wow = "uppercase";<br/>$wow("Time to live king size");

TRUE ANSWER : ?
YOUR ANSWER : ?

Which one of the following PHP functions can be used to build a function that accepts any number of arguments?

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 one() {<br/>echo " this works";<br/>function two() {<br/>echo "this too works";<br/>}<br/>}<br/>one();<br/>two();

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>echo lcfirst("welcome to India");

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