• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

HIGHWAY ENGINEERING QUIZ

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

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

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 "chr($total)";<br/>}<br/>$var1 = "sum";<br/>$var1(5, 44);

TRUE ANSWER : ?
YOUR ANSWER : ?

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

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

TRUE ANSWER : ?
YOUR ANSWER : ?

phpinfo() will display about?<br/>1. OS version information<br/>2. PHP installation<br/>3. Variables<br/>4. HTTP headers

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

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

TRUE ANSWER : ?
YOUR ANSWER : ?

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

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
↑