CIW 1D0-635 - CIW JavaScript Specialist Exam

Question #1 (Topic: )
Consider the following message displayed in a pop-up window: Welcome to the CIW Web
site! Which line of code will deliver the pop-up window that displays this message?
A. <a href="http://www.CIWcertified.com" onclick()="alert('Welcome to the CIW Web site!')">CIW Web site</a> B. <a href="http://www.CIWcertified.com" onclick="alert('Welcome to the CIW Web site!')">CIW Web site</a> C. <a onclick="http://www.CIWcertified.com","CIW Web site", ('Welcome to the CIW Web site!')" /> D. <a onclick()="http://www.CIWcertified.com","CIW Web site", ('Welcome to the CIW Web site!')" />
Answer: B
Question #2 (Topic: )
Consider the following code:
var myString= "Hello World";
alert(myString.length);
What is the output when you run this script in the browser?
A. An alert box displaying the following: "Hello World", 11 B. An alert box displaying the following: myString, 11 C. An alert box displaying the following: Hello World D. An alert box displaying the following: 11
Answer: D
Question #3 (Topic: )
When using AJAX, what is the purpose of the XMLHttpRequest object?
A. To transfer an XML document to the Web server B. To request data from the Web server strictly in XML format C. To read and write to an XML file stored on the local machine D. To request either XML data or plaintext data from the Web server
Answer: D
Question #4 (Topic: )
Which of the following is a reason why a developer would use a JavaScript library?
A. JavaScript libraries ensure quality code that does not harbor security risks. B. JavaScript libraries require a shorter learning curve than JavaScript. C. JavaScript libraries are subsets of Java and thus provide more powerful code. D. JavaScript libraries provide platform-independent code that will behave identically in any browser.
Answer: B
Question #5 (Topic: )
Assuming the function <body onload="DisplayName()"> is called, which script block will
display Hello Joe in the document window after you enter the name Joe?
A. &lt;script type="text/javascript"> function DisplayName(void){ var YourName = window.prompt("What is your name?","Please enter your name"); document.write("Hello " + YourName); } &lt;/script> B. &lt;script type="text/javascript"> function DisplayName(){ var YourName = window.prompt("What is your name?","Please enter your name"); document.write("Hello " + YourName); } &lt;/script> C. &lt;script type="text/javascript"> function DisplayName(void){ var YourName = document.prompt("What is your name?",Please enter your name); document.write("Hello " + YourName); } &lt;/script> D. &lt;script type="text/javascript"> function DisplayName(){ var YourName = document.prompt("What is your name?","Please enter your name"); document.write("Hello " + yourname); } &lt;/script>
Answer: B
Download Exam
Page: 1 / 12
Total 55 questions