Q4. If you want to declare a variable that can be accessed by more than one function or script block in your program, you will need to declare the variable .
A. In the HEAD element of the HTML document.
B. Outside of any function definition.
C. Inside your function definition.
D. In the body element of the HTML document.
Answer: B
Q5. Which of the following is the correct way to test for the presence of a cookie?
A. test(document.cookie);
B. alert(document.cookie);
C. document.cookie
D. prompt(document.cookie);
Answer: B
Q6. || is a comparison opertator. x||y returns true if both x and y are true.
A. FALSE
B. TRUE
Answer: B
Q7. Which JavaScript object should be used to create buttons that animate whenever the mouse pointer passes over them?
A. Button
B. File
C. Image
D. Frame
Answer: C
Q8. Consider the following script:
<SCRIPT>
<!--
var name;
name=prompt("What is your name?" , ""); alert("Hello, " + name +".");
// -->
</SCRIPT>
What does this script do in terms of the use of the variable "name"?
A. The variable value is assigned via the prompt method, and then displayed via the alert method.
B. The variable value is assigned via the prompt method.
C. Nothing. This script would result in an error.
D. The variable value is assigned via the alert method.
Answer: A
Q9. The window object is subordinate to the document object in the JavaScript hierarchy.
A. FALSE
B. TRUE
Answer: A
Q10. In which part of the HTTP communication protocol does the cookie initially begin to function?
A. In the initial query, to identify the user to the server.
B. In the HTTP response header.
C. In the parsing of the serveru2021s user database.
D. After the server confirms the browseru2021s ability to recognize cookies.
Answer: B
Q11. A way to exit a loop that would otherwise continue to execute is to use the break statement. If a condition is reached, the user is allowed to break out of the loop. You can use the break statement within the .
A. if and else loops
B. for and while loops
C. while and else statements
D. if and for statements
Answer: B
Q12. The continue statement is used with a .
A. for or a while loop
B. for or a next loop
C. for loop
D. while statement
Answer: A
Q13. Which property of the document object represents the color in which text is to be displayed?
A. txColor
B. bgColor
C. fgColor
D. txtColor
Answer: C
P.S. Easily pass 1D0-435 Exam with Thedumpscentre Exact Dumps & pdf vce, Try Free: http://www.thedumpscentre.com/1D0-435-dumps/ ( New Questions)