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

CSE :: Javascript - CS

  1. What is being imposed on each subset to ensure that it conforms to the subset?

  2. A.

     A parser to parse the code

    B.

     A parser that parses and adds to the subset

    C.

     A static verifier that parses code

    D.

     All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Why was “The Good Parts” designed as a language subset in JavaScript?

  4. A.

     To improve programmer flexibility

    B.

     To balance the work load of the programmer

    C.

     To create an in-built compiler and interpreter

    D.

     To improve programmer productivity

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which is the subset that is a secure container designed for the purpose of safely running untrusted JavaScript?

  6. A.

     Sandbox

    B.

     The Good Parts

    C.

     Both Sandbox and Good Parts

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Why is the this keyword forbidden in JavaScript?

  8. A.

     Highly memory consuming

    B.

     Functions should access the global objects

    C.

     Functions should not access the global objects

    D.

     Very inefficient to use

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which are the two functions that are not allowed in any secure subset?

  10. A.

     evaluate() and restrict()

    B.

     eval() and the Function() constructor

    C.

     debugger() and test()

    D.

     eval() and debugger()

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which is the object that defines methods that allow complete control over page content?

  12. A.

     The client-side document object

    B.

     The server-side document object

    C.

     Both client-side and server-side document object

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which was one of the first security subsets proposed?

  14. A.

     FBJS

    B.

     Caja

    C.

     dojox.secure

    D.

     ADSafe

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which is the subset that transforms web content into secure modules that can be safely hosted on a web page?

  16. A.

     Microsoft Web Sandbox

    B.

     ADsafe

    C.

     Caja

    D.

     dojox.secure

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Consider the following code snippet

    const pi=3.14;

    var pi=4;

    console.log(pi);

    What will be the output for the above code snippet?

  18. A.

     This will flash an error

    B.

     Prints 4

    C.

     Prints 3.14

    D.

     Ambiguity

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The main difference between the variables declared with var and with let is

  20. A.

     var is confined to a particular function but let is not

    B.

     let is confined to a particular function but var is not

    C.

     var defines values based on conditions but let does not

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum