Home / CSE / Javascript - CS :: Classes and Modules

CSE :: Javascript - CS

  1. What will be the reaction when a catch clause has no conditionals ?

  2. A.

     Takes it to be 0

    B.

     Takes it to be 1

    C.

     Takes it to be true

    D.

     Takes it to be false

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. When will the finally block be called?

  4. A.

     When there is no exception

    B.

     When the catch doesnot match

    C.

     When there is exception

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. What is the return type of typeof for standard JavaScript objects?

  6. A.

     xml

    B.

     object

    C.

     dom

    D.

     html

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which method to use while working with XML fragments, instead of XML()?

  8. A.

     XMLInterface()

    B.

     XMLClass()

    C.

     XMLList()

    D.

     XMLArray()

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of the following is the descendant operator?

  10. A.

     ..

    B.

     …

    C.

     *

    D.

     @

    View Answer

    Workspace

    Discuss Discuss in Forum


  • Which of the following is an example to perform the most common XML manipulations using the XML objects invocation?

  • A.

     insertChildBefore()

    B.

     insertChildAfter()

    C.

     appendChildAfter(…)

    D.

     appendChildBefore(…)

    View Answer

    Workspace

    Discuss Discuss in Forum


  • What is the code required to delete all “weight” tags?

  • A.

     delete weight(pt).all;

    B.

     delete pt.element[all];

    C.

     delete pt;

    D.

     delete pt..weight;

    View Answer

    Workspace

    Discuss Discuss in Forum