Home / CSE / Javascript - CS :: Caching and Debugging

CSE :: Javascript - CS

  1. What is the purpose of the Math method toSource()?

  2. A.

     Returns the string “Math”

    B.

     Sends the source to the Math Library

    C.

     Returns the value of the object

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. How many static methods does a Date object have?

  4. A.

     3

    B.

     5

    C.

     4

    D.

     2

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which of the following are static methods in JavaScript?

  6. A.

     Date.parse()

    B.

     Date.UTC()

    C.

     Both Date.parse() and Date.UTC()

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. If we have an object r and want to know if it is a Range object, we can write:

  8. A.

     r typeof Range

    B.

     r is Range

    C.

     r equals Range

    D.

     r instanceof Range

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. What is the property to access the first child of a node?

  10. A.

     timestamp.Child1

    B.

     timestamp.Child(1)

    C.

     timestamp.Child(0)

    D.

     timestamp.firstChild

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following is not an object?

  12. A.

     Element

    B.

     Location

    C.

     Position

    D.

     Window

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. What is the code snippet to change the class and let the stylesheet specify the details?

  14. A.

     timestamp.className = "highlight";

    B.

     timestamp.className = "change";

    C.

     timestamp.className = "specify";

    D.

     timestamp.className = "move";

    View Answer

    Workspace

    Discuss Discuss in Forum