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

BASIC PHP QUIZ

If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?

TRUE ANSWER : ?
YOUR ANSWER : ?

Which of the below namespace declaration is correct?

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following php code?<br/>$num = "1";<br/>$num1 = "2";<br/>print $num+$num1;

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>$num = 10;<br/>echo 'What is her age? \n She is $num years old';

TRUE ANSWER : ?
YOUR ANSWER : ?

Multiple namespaces cannot be defined in the same file.

TRUE ANSWER : ?
YOUR ANSWER : ?

PHP is an open source software.

TRUE ANSWER : ?
YOUR ANSWER : ?

All classes in the same namespace or subnamespace don’t have to the declared in the same PHP file.

TRUE ANSWER : ?
YOUR ANSWER : ?

String values must be enclosed in ......

TRUE ANSWER : ?
YOUR ANSWER : ?

When a simple data type is casted to an array, an array is created with the original value in the first element.

TRUE ANSWER : ?
YOUR ANSWER : ?

What is the value of $a and $b after the function call?<br/>function doSomething( &$arg ) {<br/>$return = $arg;<br/>$arg += 1;<br/>return $return;<br/>}<br/>$a = 3;<br/>$b = doSomething( $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
↑