Pass4itsure > CIW > CIW Certifications > 1D0-635 > 1D0-635 Online Practice Questions and Answers

1D0-635 Online Practice Questions and Answers

Questions 4

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

Buy Now
Questions 5

Which statement will correctly call a JavaScript function without error?

A. var myFunction()

B. initiate myFunction()

C. call myFunction()

D. myFunction()

Buy Now
Questions 6

Which is the best technique to test a script for cross-browser compatibility?

A. Use the W3C site's code validator to test the script.

B. Test the script in various versions of the same browser.

C. Test the script in various browsers, including various versions of the same browsers.

D. Determine the most frequently used browser for your target audience and then test the script in that browser.

Buy Now
Questions 7

Consider the following code: When an invalid e-mail address is entered, an alert is displayed to the user, but the form submission is not interrupted. What changes need to be made to the script in order to abort the submission if an invalid e- mail address is entered?

A. Add return false after the alert() statement.

B. Change return to validate in the function call.

C. Add validate false after the alert() statement.

D. Remove the return keyword from the function call and put it in front of the alert() statement.

Buy Now
Questions 8

Which of the following is a practice associated with the security risk known as cross-site scripting (XSS)?

A. Inserting JavaScript code in a URL query string to perform an unintended or malicious action

B. Using a look-alike site to impersonate a trusted site so the user will enter sensitive information

C. Using a certificate authority validation to persuade users to accept a specialized script that can override certain security restrictions in thebrowser

D. Launching a JavaScript statement that has no conditions for ending, thus requiring the user to close the browser in order to end the script

Buy Now
Questions 9

Which of the following will correctly declare the EmployeeID variable as a string data type?

A. string EmployeeID = 123;

B. string EmployeeID = "123";

C. var EmployeeID = 123;

D. var EmployeeID = "123";

Buy Now
Questions 10

Consider the following select list:

Which of the following will select the third option in the list?

A. var list = document.getElementById("numlist");list.selected = 3;

B. var list = document.getElementById("numlist");list.options[2].selectedIndex();

C. var list = document.getElementById("numlist");list.options.selectedIndex = 2;

D. var list = document.getElementById("numlist");list[3].selected(true);

Buy Now
Questions 11

How is the alert() method different from prompt() and confirm()?

A. The alert() method generates a modal dialog box, which requires user action before the next JavaScript instruction can be executed,whereas prompt() and confirm() do not.

B. The alert() method requires only one parameter, whereas prompt() and confirm() require two parameters.

C. The alert() method requires two parameters, whereas prompt() and confirm() require only one parameter.

D. The prompt() and confirm() methods return a value, whereas alert() does not.

Buy Now
Questions 12

Maria, a 22-year old student, is testing her JavaScript application, which includes the following code: Assuming Maria enters truthful information, what is the value of z after executing this code?

A. No value ?error in line 1 due to missing var keyword for userAge.

B. No value ?error in line 1 due to multiple declarations in one line.

C. Maria "is" 22 "years old"

D. Maria is 22 years old

Buy Now
Questions 13

Consider the following code:

What is the expected output when you run this script in a browser?

A. A button labeled Click Me will appear, with an input box that displays the following default text: Old Value. Upon clicking the button, the textin the text box will change to New Value. Upon clicking the button again, the text in the text box will change back to Old Value.

B. A button labeled Click Me will appear, with an input box that displays the following default text: Old Value. Upon clicking the button, the text inthe text box will change to New Value. Upon clicking the button again, the text in the text box will change to Old Value, New Value.

C. A button labeled Click Me will appear, with an input box that displays the following default text: Old Value. Upon clicking the button, the text inthe text box will change to New Value. Upon clicking the button again, you will see nothing change.

D. This script will not run. You will get an error because the value="Old Value" statement in the tag contains the reserved wordValue within the quotes.

Buy Now
Exam Code: 1D0-635
Exam Name: CIW JavaScript Specialist
Last Update: Jan 01, 2025
Questions: 55
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99