• 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 constant()<br/>{<br/>define("GREETING", "Welcome to Narnia",true);<br/>echo greeting;<br/>}

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>define("GREETING","Hello you! How are you today?");<br/>echo constant("GREETING");

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/>function b()<br/>{<br/>echo " I am here to spoil this code";<br/>}<br/>b();<br/>TV("Sherlock");

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

Returning values from functions may include .....

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>$title = "O'malley wins the heavyweight championship!";<br/>echo ucwords($title);

TRUE ANSWER : ?
YOUR ANSWER : ?

Which one of the following is the right way of defining a function in PHP?

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/>echo(atan(0.50));

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