CIW JAVA XCRIPT FUNDAMENTALS (1D0-435) Free Practice Test
Question 1
JavaScript contains both Keywords that you must use to achieve specific results and Reserved words that you are not permitted to use for variable or function names.
Correct Answer: B
Question 2
Which of the following operators is the logical "and", that evaluates to true when both operands are true?
Correct Answer: C
Question 3
The main event handler associated with the radio button object is _________.
Correct Answer: B
Question 4
The _________ is often used in programming to separate statements from each other.
Correct Answer: C
Question 5
Nadir wants to be able to send the user to a previous page in the history list. Nadir's site includes two information pages before the entrance to the site. Therefore, users who do not want to enter his Web site should go back at least three previous pages. Nadir uses the following command: history.back(3);. This command does not execute properly when Nadir tests it. How should he rewrite this line of code to ensure that this JavaScript command executes properly?
Correct Answer: D
Question 6
In JavaScript, ++x+ will add one to the value of x after the assignment is complete.
Correct Answer: A
Question 7
Creating your object references as elements of an array rather than creating individual variables will make them easier to use for repetitive tasks?
Correct Answer: B
Question 8
The term __________________ refers to any application, such as a Web Browser or help engine, that renders HTML for display to users.
Correct Answer: B
Question 9
What will the following JavaScript code do when it runs?
var content="";
content += "<HTML><HEAD><BASE TARGET='_blank'></HEAD>";
content += "<BODY BGCOLOR='#CC9966' TEXT='#330000'>";
content += "Related Sites".big().fontcolor("blue") + "<P>\n";
content += "These sites are of interest to ";
content += "Afrikunda".italics();
content += " patrons.<P>\n";
var content="";
content += "<HTML><HEAD><BASE TARGET='_blank'></HEAD>";
content += "<BODY BGCOLOR='#CC9966' TEXT='#330000'>";
content += "Related Sites".big().fontcolor("blue") + "<P>\n";
content += "These sites are of interest to ";
content += "Afrikunda".italics();
content += " patrons.<P>\n";
Correct Answer: D