Exam Questions Marking Scheme New
Update | A+ Rated
Which of the following escape sequences will print the backslash
character? - 🧠 ANSWER ✔✔\\
Which of the following characters matches the start of a line in a regular
expression - 🧠 ANSWER ✔✔^
What is the main role of JavaScript in an AJAX transaction? - 🧠 ANSWER
✔✔To request XML or plain text data from a web server
Which property is used to add CSS styles to elements in a Web Page? - 🧠
ANSWER ✔✔HTMLElement.style
What is a bug in the JavaScript code? - 🧠 ANSWER ✔✔An error in the
code
Which of the following is not a valid property? - 🧠 ANSWER
✔✔coords.timestamp
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
1
STATEMENT. ALL RIGHTS RESERVED
, What readyState value specifies that the response header has been
received, but the message body is yet to be received? - 🧠 ANSWER ✔✔3
Which of the following casting rules is incorrect when concatenating? (true
is a Boolean value) - 🧠 ANSWER ✔✔9 + true equals "9true"
Which of the following statements is true of semicolons in JavaScript? - 🧠
ANSWER ✔✔Semicolons are essential while combining separate
statements in a line
Which statement is false in reference of XSS attacks? - 🧠 ANSWER
✔✔They cannot be performed through emails or mail clients
Sarah has created a JavaScript library, and now she wants to include it in
her document. Which of the following statements follows the correct syntax
to link the library in her document? - 🧠 ANSWER ✔✔<script
type="text/javascript" src="library.js"></script>
Which of the following information is not a part of the cookie header? - 🧠
ANSWER ✔✔expires = date
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
2
STATEMENT. ALL RIGHTS RESERVED