Consider the following code:
What text will display in the alert dialog box?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Correct Answer:
D
Explanation
:
Q: 2
Consider the following two code segments:
Which of the following is true about these code segments?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Correct Answer:
D
Explanation
:
Q: 3
Consider the following code:
What is the result if this code is run in a browser?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Correct Answer:
A
Explanation
:
Q: 4
Geraldine is creating a custom object to store user account data on her Web site. She has written the
following code it is not working properly. What change should she make to enable the script to run
correctly?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Correct Answer:
A
Explanation
:
Q: 5
Consider the following code: The processform() function is not executed when the submit button is pressed. What change should be made to correct this?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Correct Answer:
A
Explanation
:
Q: 6
The same origin policy was introduced at the same time as HTML5 to limit location changes in
browser windows that are using frames. Given this policy which of the following would be a valid
new location of a frame on the Web site http //www.ClWCertified corn?
A)
B)
C)
D)
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Correct Answer:
D
Explanation
:
Q: 7
Juan is testing his JavaScript application, which includes the following code:
Assuming Juan enters August for his birth month and his name for first name, what is the value of
birthMonth after executing this code?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Correct Answer:
A
Explanation
:
Q: 8
Zamar wants to add buttons to his Web page to allow users to navigate forward and backward
through his Web site similar to the Forward and Back buttons in the Web browser window. Which
JavaScript object will he use?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Correct Answer:
A
Explanation
:
Q: 9
Marshall's computer previously contracted malware because he unknowingly clicked on an infected
link in a pop-up window. What can he do to secure the Web browser so that he is protected in the
future?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Correct Answer:
C
Explanation
:
Q: 10
Consider the following code:
What is the result of running this script in a Web browser?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Correct Answer:
B
Explanation
:
Q: 11
Considering the following code:
Var 1 ;
For (I = 1; I < 10; I ++)
What part of the code fragment initializes the counter variable?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Correct Answer:
C
Explanation
:
Q: 12
Consider the following code:
What does line 9 do?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Correct Answer:
B
Explanation
:
Q: 13
Consider the following code:
Which of the following is true based on the above code?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Correct Answer:
A
Explanation
:
Q: 14
Jackson was testing his code when the Web browser became locked and he had to close it to stop the
script What might he have accidentally done when coding his Web site?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Correct Answer:
D
Explanation
:
Q: 15
Scarlet has the following code in her script:
Var namesArr =[‘’Joseph’,’ Charlotte’’, ‘’Nicole’’];
She wants to add the name Hank to the end of the array so that its length is 4. What code should she
use?