Download CIW JavaScript Specialist.1D0-635.Pass4Sure.2019-09-01.55q.vcex

Vendor: CIW
Exam Code: 1D0-635
Exam Name: CIW JavaScript Specialist
Date: Sep 01, 2019
File Size: 683 KB

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Purchase
Coupon: EXAM_HUB

Discount: 20%

Demo Questions

Question 1
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?
  1. <script type="text/javascript"> 
    function DisplayName(void){ 
    var YourName = window.prompt("What is your name?","Please enter your name"); 
    document.write("Hello " + YourName); 
    </script>
  2. <script type="text/javascript"> 
    function DisplayName(){ 
    var YourName = window.prompt("What is your name?","Please enter your name"); 
    document.write("Hello " + YourName); 
    </script>
  3. <script type="text/javascript"> 
    function DisplayName(void){ 
    var YourName = document.prompt("What is your name?",Please enter your name); 
    document.write("Hello " + YourName); 
    </script>
  4. <script type="text/javascript"> 
    function DisplayName(){ 
    var YourName = document.prompt("What is your name?","Please enter your name"); 
    document.write("Hello " + yourname); 
    </script>
Correct answer: B
Question 2
Consider the following code fragment, which sets up the retrieval of an XML document named fish.xml and calls a function named showFish(): var xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET", "fish.xml", true); xmlhttp.onreadystatechange = showFish(); xmlhttp.send(); Which line of code initializes the XMLHttpRequest object?
  1. xmlhttp.send();
  2. var xmlhttp = new XMLHttpRequest();
  3. xmlhttp.open("GET", "fish.xml", true);
  4. xmlhttp.onreadystatechange = showFish();
Correct answer: C
Question 3
Which of the following demonstrate the correct syntax for the switch statement?
  1. var myName= "Paul" 
    switch (myName){ 
    case "Peter" 
    document.write("My name is Peter.<br />") 
    break 
    case "Paul" 
    document.write("My name is Paul.<br />") 
    break: (default);
    document.write("I do not have a name.<br />") 
    }
  2. var myName= "Paul" 
    switch (myName){ 
    case (Peter) 
    document.write("My name is Peter.<br />") 
    break 
    case "Paul" 
    document.write("My name is Paul.<br />") 
    break: (default);
    document.write("I do not have a name.<br />") 
    }
  3. var myName= "Paul" 
    switch (myName){ 
    case “Peter” 
    document.write("My name is Peter.<br />") 
    break 
    case (Paul) 
    document.write("My name is Paul.<br />") 
    break; 
    case: (default);
    document.write("I do not have a name.<br />") 
    }
  4. var myName= "Paul" 
    switch (myName){ 
    case (Peter) 
    document.write("My name is Peter.<br />") 
    break 
    case (Paul) 
    document.write("My name is Paul.<br />") 
    break; 
    case: (default);
    document.write("I do not have a name.<br />") 
    }
Correct answer: A
Question 4
Consider the following code: <script type="text/javascript"> var v1 = "alpha"; function f () { var v2 = "bravo"; alert (v1 + ", " + v2); } f(); v1="charlie"; alert (v1 + ", " + v2); </script> What is the expected result when you run this script in the browser?
  1. An alert box displaying charlie, bravo
  2. An alert box displaying alpha, bravo followed by an error
  3. Two alert boxes displaying alpha, bravo and alpha, bravo respectively
  4. Two alert boxes displaying alpha, bravo and charlie, bravo respectively, followed by an error
Correct answer: B
Question 5
Which of the following is a valid variable name in JavaScript?
  1. this
  2. that
  3. 2that
  4. 2this
Correct answer: B
Question 6
What basic code is needed to define a function in JavaScript?
  1. function myFunction { }
  2. define myFunction() { }
  3. function myFunction() { }
  4. define myFunction { return value; }
Correct answer: C
Question 7
When using AJAX, what is the purpose of the XMLHttpRequest object?
  1. To transfer an XML document to the Web server
  2. To request data from the Web server strictly in XML format
  3. To read and write to an XML file stored on the local machine
  4. To request either XML data or plaintext data from the Web server
Correct answer: D
Question 8
Which statement will correctly call a JavaScript function without error?
  1. var myFunction()
  2. initiate myFunction()
  3. call myFunction()
  4. myFunction()
Correct answer: D
Question 9
Consider only the following code: 
  
Which of the following would properly supply the sum of the two numbers?
  1. return sum;
  2. mySum (num1+num2);
  3. return num1+num2;
  4. return sum(num1+num2);
Correct answer: C
Question 10
Which is the best technique to test a script for cross-browser compatibility?
  1. Use the W3C site's code validator to test the script.
  2. Test the script in various versions of the same browser.
  3. Test the script in various browsers, including various versions of the same browsers.
  4. Determine the most frequently used browser for your target audience and then test the script in that browser.
Correct answer: C
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!