CIW 1D0-635 - CIW JavaScript Specialist Exam

Page:    1 / 11   
Total 55 questions

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

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

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

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

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. <script type="text/javascript"> function DisplayName(void){ var YourName = window.prompt("What is your name?","Please enter your name"); document.write("Hello " + YourName); } </script>
  • B. <script type="text/javascript"> function DisplayName(){ var YourName = window.prompt("What is your name?","Please enter your name"); document.write("Hello " + YourName); } </script>
  • C. <script type="text/javascript"> function DisplayName(void){ var YourName = document.prompt("What is your name?",Please enter your name); document.write("Hello " + YourName); } </script>
  • D. <script type="text/javascript"> function DisplayName(){ var YourName = document.prompt("What is your name?","Please enter your name"); document.write("Hello " + yourname); } </script>


Answer : B

Page:    1 / 11   
Total 55 questions