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


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

  4. A.

     does

    B.

     does not


  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


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

  8. A.

     16384

    B.

     65536

    C.

     1048576

    D.

     2147483647


  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


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

  12. A.

     TRUE

    B.

     FALSE


  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


  15. Which of the below namespace declaration is correct?

  16. A.

     namespace ORA:

    B.

     namespace 1_RA;

    C.

     namespace ORA;

    D.

     namespace ORA_#;


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

  18. A.

     TRUE

    B.

     FALSE


  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