Home / CSE / PHP - CS :: Basic PHP

CSE :: PHP - CS

  1. Some PHP code might not have a namespace and therefore lives in the . . . . . . namespace.

  2. A.

     Default 

    B.

     Global

    C.

     PRE

    D.

     Automatic

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  4. A.

     TRUE

    B.

     FALSE

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. It is possible to create a hierarchy of namespaces in PHP.

  6. A.

     TRUE

    B.

     FALSE

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. The value of __NAMESPACE__ is a string that contains the current namespace name. In global, un-namespaced code, it contains . . . . . .

  8. A.

     NULL

    B.

     0

    C.

     an empty string

    D.

     gibberish value

    View Answer

    Workspace

    Discuss Discuss in Forum