Home / CSE / Javascript - CS :: Invocation and Performance Navigation

CSE :: Javascript - CS

  1. What is the purpose of script loading?

  2. A.

     Load Scripts programmatically

    B.

     Load JavaScript files manually

    C.

     Load JavaScript files programmatically

    D.

     All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. What will happen if the browser encounters a script tag without an src attribute?

  4. A.

     Throws an error

    B.

     Throws an exception

    C.

     Sends it to the compiler

    D.

     Sends it to the interpreter

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. What is the solution to the absence of a script tag without an src attribute?

  6. A.

     Resend the scripts

    B.

     Create inline JavaScript

    C.

     All of the mentioned

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. How to get a particular value using the tagged name?

  8. A.

     getElementbyID()

    B.

     getElementsbyName()

    C.

     getElementsbyTagName()

    D.

     getTagName()

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. What should be the type of the script_url?

  10. A.

     Object

    B.

     String

    C.

     Array

    D.

     Any of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. What is the purpose of using the async attribute in the script tag?

  12. A.

     Load the script asynchronously

    B.

     Load the script synchronously

    C.

     Load the page asynchronously

    D.

     Load the page synchronously

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Why do we need to use an onload event in the script tag after using the async attribute?

  14. A.

     Invoke code during page loading

    B.

     Invoke code during script loading

    C.

     Invoke code during downloading

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. What is the purpose of the startTimeLogging() method?

  16. A.

     Start the timer

    B.

     Capture time logging

    C.

     Capture timing data for referencing

    D.

     All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. What is the type of datatype the async attribute optionally accepts?

  18. A.

     Integer

    B.

     String

    C.

     Boolean

    D.

     Decimal

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. What is the method used to create an element in the HTML DOM?

  20. A.

     createDOMelement()

    B.

     createElement()

    C.

     createDOMElement()

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum