Home / CSE / PHP - CS :: Databases Handling

CSE :: PHP - CS

  1. When you are building administrative links you’ll need to accept two arguments, which of the following are they?

  2. A.

     URL of previous entry and URL of the entry you are working with

    B.

     The current page and previous page

    C.

     URL of previous entry and previous page

    D.

     The current page and URL of the entry you are working with


  3. Once your application can generate administrative links, you need to load those links into _________

  4. A.

     php.ini

    B.

     index.ini

    C.

     index.php

    D.

     start.php


  5. The URLs in the administrative links won’t mean anything to admin.php unless you modify _________

  6. A.

     .htaccess

    B.

     .adminaccess

    C.

     .htmlaccess

    D.

     .urlaccess


  7. The (|/) tells the server to match ___________

  8. A.

     nothing

    B.

     forward slash

    C.

     backward slash

    D.

     either nothing or a forward slash


  9. ([w-]+) will match ___________

  10. A.

     one word characters

    B.

     one or more word characters

    C.

     one or more word characters and/or hypens

    D.

     one or more word characters and hypens


  11. You need to check whether ______ is set, to determine whether you’re editing an entry or creating a new one.

  12. A.

     $_GET[‘url’].

    B.

     $_SET[‘url’].

    C.

     $_GET[‘admin’].

    D.

     $_SET[‘admin’].


  13. To identify entries marked for deletion, you check whether $_GET[‘page’] == ‘delete’ inside __________

  14. A.

     index.php

    B.

     index.ini

    C.

     admin.php

    D.

     .htaccess


  15. Your confirmation form submits your choice, via the _______ method, to ________

  16. A.

     GET index.php

    B.

     GET admin.php

    C.

     POST index.php

    D.

     POST admin.php


  17. When a user confirms that he wishes to delete an entry, that entry’s URL is passed to a function which removes the entry from the __________

  18. A.

     index.php

    B.

     function.inc.php

    C.

     database

    D.

     admin.php


  19. Which of the following DBMSs do not have a native PHP extension?

  20. A.

     MySQL

    B.

     IBM DB/2

    C.

     PostgreSQL

    D.

     Microsoft SQL Server

    E.

     None of the above