Ensurepass

QUESTION 71

You are developing an HTML5 web application and are styling text.

 

You need to use the text-transform CSS property.

 

Which value is valid for the text-transform property?

 

A.

Lowercase

B.

Blink

C.

Line-through

D.

20px

 

Correct Answer: A

 

 

QUESTION 72

DRAG DROP

You are developing a web page for runners who register for a race.

 

The page includes a slider control that allows users to enter their age.

 

You have the following requirements:

 

image006All runners must enter their age.

image006[1]Applications must not be accepted from runners less than 18 years of age or greater than 90 years.

image006[2]The slider control must be set to the average age (37) of all registered runners when the page is first displayed.

 

You need to ensure that the slider control meets the requirements.

 

What should you do? (To answer, drag the appropriate word or number to the correct location in the answer area. Each word or number may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)

 

image150

 

Correct Answer:

image151

 

 

QUESTION 73

You are creating a JavaScript object that represents an employee.

 

You need to extend the Employee object by adding the GetPayroll() method.

 

You need to ensure that all future instances of the Employee object implement the GetPayroll() method.

 

Which code segment should you use?

 

image152

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

 

 

QUESTION 74

You are developing an HTML5 page that includes several paragraph elements.

 

You have the following requirements:

 

image006[3]Add a drop shadow that is one inch below the text in the paragraph

image006[4]Set the radius of the drop shadow to five pixels

 

You need to style the paragraphs to meet the requirements.

 

Which CSS style should you use?

 

A.

Text-shadow: 72pt 0pt 5pt

B.

Text-shadow: 5px lin 0px;

C.

Text-shadow: 72pt 0em 5px;

D.

Text-shadow: 100px 0px 5px;

 

Correct Answer: B

Explanation:

We set the second argument (vertical) to one inch (1in).

 

Note

Syntax

text-shadow: h-shadow v-shadow blur color;

 

Note: The text-shadow property attaches one or more shadows to text. The property is a comma-separated list of shadows, each specified by 2 or 3 length values and an optional color. Omitted lengths are 0.

 

* h-shadow

Required. The position of the horizontal shadow. Negative values are allowed

 

* v-shadow

Required. The position of the vertical shadow. Negative values are allowed

 

* blur

Optional. The blur distance

 

* color

Optional. The color of the shadow.

 

 

QUESTION 75

You are developing an HTML5 web application and are styling text.

 

You need to use the text-transform CSS property.

 

Which value is valid for the text-transform property?

 

A.

Capitalize

B.

Red

C.

20px

D.

Italic

 

Correct Answer: A

Explanation:

http://www.w3schools.com/cssref/pr_text_text-transform.asp

 

none,capitalize,uppercase,lowercase and inherit

 

Example

 

Transform text in different elements:

 

h1 {text-transform:uppercase;}

 

h2 {text-transform:capitalize;}

 

p {text-transform:lowercase;}

 

 

 

 

 

 

QUESTION 76

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.

<table>

C.

<div>

D.

<span>

 

Correct Answer: A

Explanation:

The <article> tag specifies independent, self-contained content.

 

An article should make sense on its own and it should be possible to distribute it independently from the rest of the site.

 

Potential sources for the <article> element:

 

Forum post

Blog post

News story

Comment

 

 

QUESTION 77

You are developing an HTML5 page that has an element with an ID of picture. The page includes the following HTML.

 

image153

 

You need to move the picture element lower on the page by five pixels.

 

Which two lines of code should you use? (Each correct answer presents part of the solution. Choose two.)

 

A.

document.getEIementById(“picture”).style.position = “relative”;

B.

document.getElementById(“picture”).style.top = “5px”;

C.

document.getEiementById(“picture”).style.top = “-5px”;

D.

document.getEIementById(“picture”).style.position = “absolute”;

 

Correct Answer: AB

Explanation:

We use relative position to move the position 5 pixels lower on page.

 

Using a negative value would move the picture higher on the page.

 

Note:

* The top property sets or returns the top position of a positioned element.

 

This property specifies the top position of the element including padding, scrollbar, border and margin.

 

Syntax

Set the top property:

 

Object.style.top=”auto|length|%|inherit”

 

Where:

Length defines the top position in length units. Negative values are allowed

 

 

QUESTION 78

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.

<section>

B.

<tbody>

C.

<div>

D.

<table>

 

Correct Answer: A

Explanation:

The <section> tag defines sections in a document. Such as chapters, headers, footers, or any other sections of the document.

 

 

QUESTION 79

You are developing a customer web form that includes the following HTML.

 

<input id=”txtValue”/>

 

You need to change the HTML markup so that customers can enter only a valid three-letter country code.

 

Which HTML should you use?

 

A.

<input id=”txtValue” type=”country”/>

B.

<input id=”txtValue” type=”text” required=”xxx”/>

C.

<input id=”txtVa!ue” type=”text” pattern-” [A-Za-z] {3} “/>

D.

<input id=”txtValuen type=”code” pattern”=”country”/>

 

Correct Answer: C

 

 

 

 

 

 

QUESTION 80

You are developing an HTML5 web application and are styling text.

 

You need to use the text-transform CSS property.

 

Which value is valid for the text-transform property?

 

A.

Capitalize

B.

Hidden

C.

Italic

D.

Line-through

 

Correct Answer: A

Explanation:

http://www.w3schools.com/cssref/pr_text_text-transform.asp

 

none,capitalize,uppercase,lowercase and inherit

 

Example

 

Transform text in different elements:

 

h1 {text-transform:uppercase;}

 

h2 {text-transform:capitalize;}

 

p {text-transform:lowercase;}

 

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

Try Microsoft 70-480 Free Demo