Javascript

1. The development environment offers which standard construct for data validation
a) Super controlled loop constructs
b) Case sensitivity check
c) Validation constructs
d) All of the mentioned

2. Consider the following code snippet

function printprops(o) 
{
    for(var p in o)
      console.log(p + ": " + o[p] + "\n");
}

What will the above code snippet result ?

a) Prints the contents of each property of o
b) Returns undefined
c) All of the mentioned
d) None of the mentioned
3. What is being imposed on each subset to ensure that it conforms to the subset?
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
4. A linkage of series of prototype objects is called as
a) prototype stack
b) prototype chain
c) prototype class
d) prototypes
5. Which is the subset that is a secure container designed for the purpose of safely running untrusted JavaScript?
a) Sandbox
b) The Good Parts
c) Both Sandbox and Good Parts
d) None of the mentioned
6. Which attribute is used to specify that the script is executed when the page has finished parsing ( only for external scripts )
a) parse
b) a sync
c) defer
d) type
7. A function with no return value is called
a) Procedures
b) Method
c) Static function
d) Dynamic function
8. The object has three object attributes namely
a) Class, parameters, object’s extensible flag
b) Prototype, class, objects’ parameters
c) Prototype, class, object’s extensible flag
d) Native object, Classes and Interfacces and Object’s extensible flag
9. Which was one of the first security subsets proposed?
a) FBJS
b) Caja
c) dojox.secure
d) ADSafe
10. The method that can be used to create new properties and also to modify the attributes of existing properties is
a) Object.defineProperty()
b) Object.defineProperties()
c) Both Object.defineProperty() and Object.defineProperties()
d) None of the mentioned
0
{"name":"Javascript", "url":"https://www.quiz-maker.com/QUG7IG6","txt":"1. The development environment offers which standard construct for data validation, 2. Consider the following code snippet function printprops(o) { for(var p in o) console.log(p + \": \" + o[p] + \"\\n\"); } What will the above code snippet result ?, 3. What is being imposed on each subset to ensure that it conforms to the subset?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker