[Free] 2018(May) EnsurePass Braindumps Microsoft 70-480 Dumps with VCE and PDF 91-100

Ensurepass.com : Ensure you pass the IT Exams
2018 May Microsoft Official New Released 70-480
100% Free Download! 100% Pass Guaranteed!

Programming in HTML5 with JavaScript and CSS3

Question No: 91 – (Topic 2)

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?

  1. red

  2. hidden

  3. lowercase

  4. italic

Answer: C

Explanation: CSS Syntax

text-transform: none|capitalize|uppercase|lowercase|initial|inherit;

Example

Transform text in different elements: h1 {text-transform:uppercase;}

h2 {text-transform:capitalize;} p {text-transform:lowercase;}

Reference: CSS text-transform Property http://www.w3schools.com/cssref/pr_text_text-transform.asp

Question No: 92 – (Topic 2)

You develop a webpage.

The webpage must display a grid that contains one row and five columns. Columns one, three, and five are the same width. Columns two and four are the same width, but much wider than columns one, three, and five. The grid resembles the following image:

Ensurepass 2018 PDF and VCE

The grid must meet the following requirements:

-> Each row must be tall enough to ensure that images are not cut off.

-> Each row must contain five columns.

-> The width of the columns must not change when the screen is resized or rotated.

You need to define the style for the grid. Which CSS3 style should you use?

Ensurepass 2018 PDF and VCE

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Answer: C

Explanation: * -ms-grid-rows property auto

The height of a row is computed based on the tallest child element in that column.

Incorrect:

Not A: The width of the columns must not change when the screen is resized or rotated.

Not B, Not D: -ms-grid-rows property min-content

The minimum height of any child elements is used as the height of the row.

Note:

* width

The width of each column specified as one of the following values:

A length consisting of an integer number, followed by an absolute units designator (quot;cmquot;, quot;mmquot;, quot;inquot;, quot;ptquot;, or quot;pcquot;) or a relative units designator (quot;emquot;, quot;exquot;, or quot;pxquot;).

A percentage of the object width.

A proportion of the remaining horizontal space (that is, the object width, less the combined widths of other tracks), consisting of an integer number followed by a fractional designator (quot;frquot;). For example, if quot;200px 1fr 2frquot; is specified, the first column is allocated 200 pixels, and the second and third columns are allocated 1/3 and 2/3 of the remaining width, respectively.

Question No: 93 – (Topic 2)

You are modifying a website. The body of the page will be divided into two sections:

-> A content section will contain blog posts and comments.

-> An area on the right-hand side will contain advertisements.

The page is defined by the following HTML.

Ensurepass 2018 PDF and VCE

The site must conform to HTML5 standards and must use HTML5 semantic tags. You need to ensure that the advertisements are on the rightmost section of the page. Which tag should you use?

  1. lt;asidegt;

  2. lt;divgt;

  3. lt;articlegt;

  4. lt;footergt;

Answer: A

Explanation: The lt;asidegt; tag defines some content aside from the content it is placed in. The aside content should be related to the surrounding content.

aside is now acceptable for secondary content when not nested within an article element.

Reference: HTML lt;asidegt; Tag

Question No: 94 – (Topic 2)

You are implementing an application by using HTML5 and JavaScript. A web page contains the following HTML table.

Ensurepass 2018 PDF and VCE

The application must:

-> Identify all rows in the table body that have a class attribute of selected

-> Exclude the last selected row in the table

You need to implement the web page according to the requirements. Which CSS selector should you use?

  1. tr:not(tr:last-child).selected lt; #dataTable

  2. #dataTable gt; tr.selected:not(tr:last-child)

  3. #dataTable tbody tr.selected:not(tr:last-child)

  4. #dataTable tr.selected:not(tr:last-child)

Answer: C

Explanation: * [attribute] [target]

Selects all elements with a target attribute

* :not(selector) not(p)

Selects every element that is not a lt;pgt; element Reference: CSS Selector Reference

Question No: 95 – (Topic 2)

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?

  1. Capitalize

  2. Hidden

  3. Italic

  4. Line-through

Answer: A

Explanation: CSS Syntax

text-transform: none|capitalize|uppercase|lowercase|initial|inherit;

Example

Transform text in different elements: h1 {text-transform:uppercase;}

h2 {text-transform:capitalize;} p {text-transform:lowercase;}

Reference: CSS text-transform Property http://www.w3schools.com/cssref/pr_text_text-transform.asp

Question No: 96 – (Topic 2)

You troubleshoot a webpage that contains the following HTML element:

lt;canvas id= quot;clickCanvasquot; width=quot;300quot;gt; height= quot;300quot;gt;Your browser does not support the HTML5 canvas.lt;/canvasgt;

The following JavaScript code is included in a script tag in the HEAD section of the webpage: (Line numbers are included for reference only.)

Ensurepass 2018 PDF and VCE

You need to invoke the clickReporter() JavaScript function when a user clicks the mouse on the canvas HTML element.

What should you do?

  1. Add the following attribute to the canvas HTML element: clicked= quot;clickReporter()quot;

  2. Replace the code segment at line 06 with the following code segment: drawBox.Click = clickReporter;

  3. Insert the following code segment at line 07: canvas.onclick = clickReporter;

  4. Insert the following code segment at line 07: canvas, click = clickReporter;

Answer: A

Question No: 97 – (Topic 2)

You are developing an HTML5 page.

You need to add author and copyright information. Which tag should you use?

  1. lt;asidegt;

  2. lt;headergt;

  3. lt;footergt;

  4. lt;sectiongt;

Answer: C

Explanation: The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like.

Reference: The footer element

http://dev.w3.org/html5/spec-preview/the-footer-element.html

Question No: 98 DRAG DROP – (Topic 2)

You are developing an application for an online retailer. The company ships only to certain countries.

The application must:

-> Store a list of country codes in an array

-> Validate the country code of the shipping address against the countries array

-> Include a Boolean value in the array that indicates whether or not you can ship to the country

-> Display a list of countries that can be shipped to if the user inputs a code for a country that the retailer cannot ship to

You need to develop the application to meet the requirements.

Which code segment or segments should you use? (To answer, drag the appropriate code segment or segments from the list of code segments to the correct location or locations in

the work area. Each code segment 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.)

Ensurepass 2018 PDF and VCE

Answer:

Ensurepass 2018 PDF and VCE

Explanation:

Ensurepass 2018 PDF and VCE

  • !arr[ctry] is true when the array element is false.

  • The for..in statement iterates over the enumerable properties of an object, in arbitrary order. For each distinct property, statements can be executed.

Incorrect: Not:

Ensurepass 2018 PDF and VCE

Would work fine if var i; would be replaced by i=0;

Question No: 99 – (Topic 2)

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?

  1. lt;articlegt;

  2. lt;tablegt;

  3. lt;divgt;

  4. lt;spangt;

Answer: A

Explanation: The lt;articlegt; 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 lt;articlegt; element: Forum post

Blog post News story Comment

Question No: 100 – (Topic 2)

You are testing the value of the following variable in JavaScript.

var height = quot;300quot;;

A block of code must execute if the following conditions are true:

-> The height variable is set to 300

-> The height variable is of type string

You need to implement the code to run the test. Which line of code should you use?

  1. if (height = = 300)

  2. if (height = = quot;300quot;)

  3. if (height ! quot;300quot;)

  4. if (height ! = 300)

Answer: B

Explanation: Use = = to test for equality. Use quot;300quot; to test for the string.

Topic 3, Volume C

100% Ensurepass Free Download!
Download Free Demo:70-480 Demo PDF
100% Ensurepass Free Guaranteed!
Download 2018 EnsurePass 70-480 Full Exam PDF and VCE

EnsurePass ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No

You must be logged in to post a comment.

Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com