CIW JAVA XCRIPT FUNDAMENTALS - 1D0-435 Exam Practice Test

Question 1
Which property of the location object specifies the internal link anchor name, which is followed by the number sign (#) in the URL?

Correct Answer: C
Question 2
__________ is used frequently in JavaScript to combine text strings, especially in conjunction with prompt() and alert().

Correct Answer: C
Question 3
The form element ___________ is used for a single-line text field used for data entry.

Correct Answer: B
Question 4
Sasha needs to display quotation marks for a greeting on the corporate Web page. She adds the quotation marks to the JavaScript as follows:
var questions = new Array(2)
questions[0] = "What is the capital of the USA?";
questions[1] = "Who is the company "President"?";
questions[2] = "Who is the company "Vice-President"?";
When Sasha runs the code, however, the quotation marks do not appear around the words
"President" and "Vice-President"
Which of the following choices shows how Sasha should rewrite the code to make the script execute properly?

Correct Answer: C
Question 5
You are creating a Web page. You want to ensure that users who have older browsers that cannot display JavaScript can still view your home page. How should you proceed?

Correct Answer: A
Question 6
The name=value pair is the only information required to generate a cookie. All other parameters are optional.

Correct Answer: A
Question 7
Tanja wants to target the "parent" frame of all frames in her Web site. In HTML, this parent frame is called "_top". What is this parent called if Tanja decided to use JavaScript in her Web page?

Correct Answer: D
Question 8
A _________ creates an empty template from which real-time objects, called __________, can be generated.

Correct Answer: D
Question 9
Since JavaScript is case sensitive, using lower case to refer to language objects will result in an error.

Correct Answer: A
Question 10
Which property of the document object represents the color in which text is to be displayed?

Correct Answer: B
Question 11
Can a programmer refer to a variable from anywhere in a frameset?

Correct Answer: D
Question 12
Which if any of the following enables you to access the methods and properties of the parent window from a newly opened child window?

Correct Answer: C
Question 13
Can a cookie identify a user to a Web site even if that user has never submitted personal information to that site?

Correct Answer: B
Question 14
The continue statement is used with a __________________.

Correct Answer: A