JavaScript
JavaScript Certification Test Exam
Questions with Correct Verified
Solutions 100% Guaranteed Pass
1. Which method of the history object is used to create a new history
entry - ANS ✓push State()
2. Which of the following objects is used to get information about the
user's browser - ANS ✓navigator
3. Which of the following is a major advantage of using the
appendChild() Method? - ANS ✓It can be used to add elements to the
DOM without overwriting the existing page
4. Which programming language is typically used in AJAX transactions
to query databases? - ANS ✓SQL
5. Which of the following is true when using AJAX with databases? - ANS
✓AJAX can perform all back-end database operations
6. Which of the following input types masks the value entered by users?
- ANS ✓password
JavaScript Certification Test
, 2
JavaScript
7. A user enters confidential data on a web site while performing a task.
This data was redisplayed on the Web page, after the task was
completed. The data sent between the server and browser was not
encoded as HTML entities. Which of the following vulnerabilities will
this result? - ANS ✓Non-persistent XSS
8. Why does the Array.sort() method produce unreliable results when
elements of an array are numbers? - ANS ✓The sort() method treats
numbers as strings and sorts them accordingly
9. Which method can be used to increase option elements in a select
statement? - ANS ✓add()
10. Which of the following technologies is not based on JavaScript?
- ANS ✓Java
11. Which of the following is true of the getElementById() method?
- ANS ✓It return the first occurrence of an element in a document with the
specified id
12. Which of the following is a disadvantage associated with the use
of JavaScript frameworks? - ANS ✓JavaScript frameworks are large in
size
JavaScript Certification Test