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