Exit demo 1D0-735 CIW JavaScript Specialist PDF format · free preview

CIW 1D0-735 - Questions & Answers

Free preview · every answer includes a full explanation

Product page: https://prepkeys.com/1d0-735.html

Question 1
Single choice

Which of the following statements is an advantage of using JavaScript on the server-side?

A.

Server-side validation conserves more bandwidth than client-side validation

B.

Server-side JavaScript runs the script on the server, thus eliminating compatibility problems with client-side browsers

C.

Server-side JavaScript requires lass processing power on the served level than client-side JavaScript

D.

Server-side JavaScript results in a higher level of end-user satisfaction

Question 2
Single choice

Which of the following is not a best practice when using JavaScript libraries?

A.

Developers should ensure the library functions they use are cross-browser compatible for the version of HTML they are using.

B.

Developers should link to the library file and to each plug in script in the <head> section of the HTML
document using the <script> tag.

C.

Developers should use plugins from a variety of JavaScript libraries to ensure compatibility.

D.

Developers should become familiar with one library then optimize HTML code with that specific library in mind.

Question 3
Single choice

Consider the following code:

What change if any needs to be made for a "Thank you" message to appear when the checkout page is loaded?

A.

On fine 11 onupload need to be changed to onload.

B.

On line 8 alter needs to be changed to prompt

C.

On line 11, onupload needs to be changed to onload.

D.

No changes needed. The alert message will appear when the page is loaded.

Question 4
Single choice

Consider the following code:

<img onmousout=" sofaPic (this) " src="sofa.jpg" alt="sofa">

Which of the following is true based on the above code?

A.

The function sofaPic will be called upon when sofaPic image loads

B.

The function sofaPic is called when the image fails to load

C.

The function sofaPic is called when the mouse pointer moves off the image

D.

The function sofaPic is called when the mouse pointer moves over the image

Question 5
Single choice

Laurie has been instructed to add code to a Web page to display the date and time when the document was last updated.

Which code should she use?

A.

document.write("Last Updated Updated '' + history.length);

B.

document.write("Last Updated '' navigator.appVersion);

C.

document.write("Last Updated '' + new Date());

D.

document.write ("Last Updated " + document . lastModified) ;

Question 6
Single choice

Consider the following code:

Which of the following is true based on the above code?

A.

fever = (temp > 98.7) ? "a fever": "no fever"; is not a valid statement

B.

Entering 98.7 results in the statement. "You have no fever "

C.

The default value of 0 will be displayed when the page loads

D.

The checktemp function will not run because it was called upon before it was defined

Question 7
Single choice

Consider the following code:

What is the expected result of this script?

A.

The word "Welcome" will be displayed in a prompt when the page loads

B.

A welcome message will appear when the page loads

C.

When you click the alert a welcome message will appear

D.

When you click the welcome message a welcome alert will load

Question 8
Single choice

Which of the following is an advantage of using the Virtual DOM?

A.

Rendering the virtual DOM is faster than rendering the regular browser DOM.

B.

The virtual DOM updates each element when the layout of the DOM changes, meaning that the page always reflects the most current data from the server

C.

The Virtual DOM is not just a view layer, but also makes changes directly to the Web page

D.

You can learn virtual DOM concepts and React libraries quickly because the libraries are simple and concise

Question 9
Single choice

What is the output when you run the following script in the browser?

A.

Elephant Zebra Lion Giraffe

B.

Elephant Lion Giraffe

C.

Zebra Elephant Lion Giraffe

D.

Zebra.Elephant Giraffe

Question 10
Single choice

How does AJAX use the XMLHttpRequest object"?

A.

It changes a portion of a Web page so only the affected part of the page will be reloaded

B.

It provides Web page compatibility with mobile device browsers

C.

It performs code validation on the server-side in order to speed up the process of validation

D.

It provides backward-compatibility with older browser versions

Showing 10 of 54 questions · Unlock the full set