Certification Sample Questions well
answered to pass
01. Which of the following is not a valid variable name in JavaScript?
a) This
b) _that
c) _this
d) That - correct answer ✔✔a) This
02. Cross-site scripting (XSS) is a type of:
a) phishing scam.
b) security risk associated with signed scripts.
c) same-origin policy violation.
d) code-injection attack. - correct answer ✔✔Answer:
d) code-injection attack.
03. Which statement about the prototype property is true?
a) It is only available in DOM objects.
b) It is available in all objects.
c) It is only available in JavaScript predefined objects.
d) It is only available in custom objects. - correct answer ✔✔Answer:
b) It is available in all objects.