Home / CSE / Javascript - CS :: Document Object Model and Event Handling

CSE :: Javascript - CS

  1. Cookies were originally designed for

  2. A.

     Client-side programming

    B.

     Server-side programming

    C.

     Both Client-side & Server-side programming

    D.

     None of the mentioned


  3. The Cookie manipulation is done using which property?

  4. A.

     cookie

    B.

     cookies

    C.

     manipulate

    D.

     none of the mentioned


  5. Which of the following explains Cookies nature?

  6. A.

     Non Volatile

    B.

     Volatile

    C.

     Intransient

    D.

     Transient


  7. Which attribute is used to extend the lifetime of a cookie?

  8. A.

     higher-age

    B.

     increase-age

    C.

     max-age

    D.

     lifetime


  9. Which of the following defines the Cookie visibility?

  10. A.

     document Path

    B.

     localStorage

    C.

     sessionStorage

    D.

     all of the mentioned


  11. Which of the following can be used to configure the scope of the Cookie visibility?

  12. A.

     path

    B.

     domain

    C.

     both path and domain

    D.

     none of the mentioned


  13. How can you set a Cookie visibility scope to localStorage?

  14. A.

     /

    B.

     %

    C.

     *

    D.

     All of the mentioned


  15. Which of the following is a boolean cookie attribute?

  16. A.

     bool

    B.

     secure

    C.

     lookup

    D.

     domain


  17. Which of the following function is used as a consequence of not including semicolons, commas or whitespace in the Cookie value?

  18. A.

     encodeURIComponent()

    B.

     encodeURI()

    C.

     encodeComponent()

    D.

     none of the mentioned


  19. What is the constraint on the data per cookie?

  20. A.

     2 KB

    B.

     1 KB

    C.

     4 KB

    D.

     3 KB