Ensurepass

QUESTION 121

HOTSPOT

You troubleshoot a webpage that includes the following code segment:

 

image270

 

You need to evaluate the value of the variable named customer.name.

 

For each statement in the table, select Yes if the code segment above causes the variable to evaluate as described. Select No if it does not. Make only one selection in each column.

 

image271

 

Correct Answer:

image272

 

 

QUESTION 122

HOTSPOT

You develop an HTML5 webpage that contains the following markup and code:

 

image274

 

You have the following requirements:

 

image006Display a message if users select the first OPTION element, and then submit the form.

image006[1]Do not display an alert message if users select any other OPTION element, and then submit the form.

 

You need to implement the madeSelection() function.

 

How should you complete the relevant code? (To answer, select the appropriate code segment from each drop-down list in the answer area.)

 

image275

image276

 

Correct Answer:

image277

 

 

QUESTION 123

HOTSPOT

You develop a webpage that consumes a web service. The web service provides currency exchange rates. Visitors enter the currency type on the webpage and press the Submit button.

 

The web service returns the current exchange rate.

 

You need to ensure that the webpage always displays the most current information.

 

How should you complete the relevant code? (To answer, select the appropriate option from each drop-down list in the answer area.)

 

image278

image279

 

Correct Answer:

image280

 

 

QUESTION 124

HOTSPOT

You develop a webpage.

 

The layout of the webpage must resemble the following image:

 

image281

 

You need to ensure that the page renders properly.

 

How should you complete the relevant CSS styles? (To answer, select the appropriate option from each drop-down list in the answer area.)

 

image282

 

image283

 

Correct Answer:

image284

 

 

 

QUESTION 125

HOTSPOT

A company has an XML file named products.xml on a web server. The file contains a list of the products that the company sells.

 

You need to display the contents of the products.xml file in a DIV element named Output.

 

How should you complete the relevant code? (To answer, select the appropriate option from each drop-down list in the answer area.)

 

image285

 

image287

 

Correct Answer:

image289

 

 

 

QUESTION 126

You are developing an application that analyzes population data for major cities in the United States. The application retrieves population statistics for a city by using a web service.

 

You need to request data from the web service by using jQuery.

 

Which code segment should you use?

 

image291

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

 

 

 

QUESTION 127

You are developing a blog web page that is being optimized for accessibility. The page includes the following HTML.

 

image292

 

The heading tags represent a blog post title, a blog post subtitle, and the author’s name.

 

You need to ensure that the three headings are treated as a unit but retain their individual formatting.

 

Which tags should you use to wrap the H1, H2, and H3 elements?

 

A.

<group> </group>

B.

<header> </header>

C.

<hgroup> </hgroup>

D.

<headings> </headings>

 

Correct Answer: C

 

 

QUESTION 128

You develop a web application by using jQuery. You develop the following jQuery code:

(Line numbers are included for reference only.)

 

image293

 

The web application exposes a RESTful web API that has an endpoint of/product/create.

 

You need to create a new product by using AJAX.

 

Which code segment should you insert at line 05?

 

image295

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

 

 

QUESTION 129

You develop a webpage that allows a user to download a 3PEG image and convert it to a PNG file.

 

You need to implement the code to download the contents of the JPEG image with no additional decoding.

 

Which JavaScript function should you use?

 

A.

readAsBinaryString()

B.

readAsArrayBuffer()

C.

readAsDataURL()

D.

readAsText()

 

Correct Answer: B

 

 

QUESTION 130

You are modifying a blog site to improve search engine readability.

 

You need to group relevant page content together to maximize search engine readability.

 

Which tag should you use?

 

A.

<article>

B.

<span>

C.

<tbody>

D.

<cd>

 

Correct Answer: A

Explanation:

How the Changes in HTML 5 Will Affect SEO (Search Engine Optimization)?

 

As a SEO expert, you are most likely interested mainly in those changes in the HTML 5 specification, which will affect your work. Here is one of them:

 

A new <article> tag. The new <article> tag is probably the best addition from a SEO point of view. The <article> tag allows to mark separate entries in an online publication, such as a blog or a magazine. It is expected that when articles are marked with the <article> tag, this will make the HTML code cleaner because it will reduce the need to use <div> tags. Also, probably search engines will put more weight on the text inside the <article> tag as compared to the contents on the other parts of the page.

 

Instant Access to Download Latest Complete Collection of Microsoft 70-480 Real Exam

Try Microsoft 70-480 Free Demo