Question 1 of 25
Hints left: 3
Q1
Which was one of the first security subsets proposed?
Q2
The Crockford’s subset doesnot include which function in JavaScript?
Q3
Consider the following code snippet function oddsums(n) { let total = 0, result=[]; for(let x = 1; x <= n; x++) { let odd = 2*x-1; total += odd; result.push(total); } return result; } What would be the output if oddsums(5)
-
A
-
B
-
C
-
D
Q4
Consider the following code snippet const pi=3.14; var pi=4; console.log
Q5
The ‘$’ present in the RegExp object is called a
Q6
The main difference between the variables declared with var and with let is
Q7
The let keyword can be used
Q8
Which is the object that defines methods that allow complete control over page content?
Q9
What is being imposed on each subset to ensure that it conforms to the subset?
Q10
Consider the following code snippet let x=x+1; console.log(x); What will be the result for the above code snippet?
Q11
Consider the following statement containing regular expressions var text = "testing: 1, 2, 3"; var pattern = /d+/g; In order to check if the pattern matches, the statement is
Q12
Which is the subset that transforms web content into secure modules that can be safely hosted on a web page?
Q13
Which are the two functions that are not allowed in any secure subset?
Q14
What does /[^(]* regular expression indicate ?
Q15
What does the subexpression /java(script)?/ result in ?
Q16
Why does JavaScript subset disallow == and !=?
Q17
What is the most essential purpose of parantheses in regular expressions ?
Q18
Why was “The Good Parts” designed as a language subset in JavaScript?
Q19
Why is the this keyword forbidden in JavaScript?
Q20
The regular expression to match any one character not between the brackets is
Q21
Which is the subset that is a secure container designed for the purpose of safely running untrusted JavaScript?
Q22
The method that performs the search-and-replace operation to strings for pattern matching is
Q23
What would be the result of the following statement in JavaScript using regular expression methods ?
-
A
-
B
-
C
-
D
Q24
What will be the result when non greedy repetition is used on the pattern /a+?b/ ?
Q25
Consider the following code snippet console.log(p) If p is not defined, what would be the result or type of error?