Home / CSE / PHP - CS :: Basic PHP

CSE :: PHP - CS

  1. PHP does not support numbers written in hexadecimal, octal or scientific notation.

  2. A.

     True

    B.

     False

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. PHP ..... demand that you declare a data type when you create a variable.

  4. A.

     does

    B.

     does not

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. strval()

  6. A.

     Accepts a value and converts it into a string array

    B.

     Accepts a value and converts it into an string dictionary

    C.

     Accepts a value and converts it into string equivalent

    D.

     None of above

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. What is the limit of a PHP integer value?

  8. A.

     16384

    B.

     65536

    C.

     1048576

    D.

     2147483647

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. PHP considers the following values as False

  10. A.

     the integer 0

    B.

     the one-character string 0

    C.

     constant NULL

    D.

     both A and B

    E.

     All of Above

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. With the introduction of namespaces, the same function name can be used in multiple places.

  12. A.

     TRUE

    B.

     FALSE

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Within a namespace, for accessing the built-in PHP classes you can prefix the class name with a . . . . . and let PHP look in the global class list.

  14. A.

     percent

    B.

     ampersand

    C.

     asterix

    D.

     backslash

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the below namespace declaration is correct?

  16. A.

     namespace ORA:

    B.

     namespace 1_RA;

    C.

     namespace ORA;

    D.

     namespace ORA_#;

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Multiple namespaces cannot be defined in the same file.

  18. A.

     TRUE

    B.

     FALSE

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. As the namespace size grows, using namespaces can become a little repetitious, but PHP also provides the . . . . . statement, which allows you to alias a specific namespace.

  20. A.

     php

    B.

     grant

    C.

     use

    D.

     label

    View Answer

    Workspace

    Discuss Discuss in Forum