Sail E0 Webinar

MCQs

Total Questions : 67 | Page 5 of 7 pages
Question 41. What is being imposed on each subset to ensure that it conforms to the subset?
  1.    A parser to parse the code
  2.    A parser that parses and adds to the subset
  3.    A static verifier that parses code
  4.    All of the mentioned
 Discuss Question
Answer: Option C. -> A static verifier that parses code
Question 42. Why was “The Good Parts” designed as a language subset in JavaScript?
  1.    To improve programmer flexibility
  2.    To balance the work load of the programmer
  3.    To create an in-built compiler and interpreter
  4.    To improve programmer productivity
 Discuss Question
Answer: Option D. -> To improve programmer productivity
Question 43. Which is the subset that is a secure container designed for the purpose of safely running untrusted JavaScript?
  1.    Sandbox
  2.    The Good Parts
  3.    Both Sandbox and Good Parts
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> Sandbox
Question 44. Why is the this keyword forbidden in JavaScript?
  1.    Highly memory consuming
  2.    Functions should access the global objects
  3.    Functions should not access the global objects
  4.    Very inefficient to use
 Discuss Question
Answer: Option C. -> Functions should not access the global objects
Question 45. Which are the two functions that are not allowed in any secure subset?
  1.    evaluate() and restrict()
  2.    eval() and the Function() constructor
  3.    debugger() and test()
  4.    eval() and debugger()
 Discuss Question
Answer: Option B. -> eval() and the Function() constructor
Question 46. Which is the object that defines methods that allow complete control over page content?
  1.    The client-side document object
  2.    The server-side document object
  3.    Both client-side and server-side document object
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> The client-side document object
Question 47. Which was one of the first security subsets proposed?
  1.    FBJS
  2.    Caja
  3.    dojox.secure
  4.    ADSafe
 Discuss Question
Answer: Option D. -> ADSafe
Question 48. Which is the subset that transforms web content into secure modules that can be safely hosted on a web page?
  1.    Microsoft Web Sandbox
  2.    ADsafe
  3.    Caja
  4.    dojox.secure
 Discuss Question
Answer: Option D. -> dojox.secure
Question 49. Consider the following code snippet
const pi=3.14;
var pi=4;
console.log
  1.    This will flash an error
  2.    Prints 4
  3.    Prints 3.14
  4.    Ambiguity
 Discuss Question
Answer: Option A. -> This will flash an error
Question 50. The main difference between the variables declared with var and with let is
  1.    var is confined to a particular function but let is not
  2.    let is confined to a particular function but var is not
  3.    var defines values based on conditions but let does not
  4.    none of the mentioned
 Discuss Question
Answer: Option B. -> let is confined to a particular function but var is not

Latest Videos

Latest Test Papers