• 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 PHP functions can be used to build a function that accepts any number of arguments?

TRUE ANSWER : ?
YOUR ANSWER : ?

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

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>function b() {<br/>echo "b is executed";<br/>}<br/>function a()<br/>{<br/>b();<br/>echo "a is executed";<br/>b();<br/>}<br/>a();

TRUE ANSWER : ?
YOUR ANSWER : ?

A function in PHP which starts with ______ (double underscore) is know as.

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/>function sayHello() {<br/>echo "HelloWorld";<br/>}<br/>$function_holder = "sayHello";<br/>$function_holder();

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code ?<br/>function email()<br/>{<br/>$email = ’contact@examians.com’;<br/>$new = strstr($email, ‘@');<br/>echo $new;<br/>}<br/>email();

TRUE ANSWER : ?
YOUR ANSWER : ?

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

TRUE ANSWER : ?
YOUR ANSWER : ?

Above usleep() function pauses PHP for .usleep(1000000);

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