[Free] 2018(Aug) Ensurepass Microsoft 70-480 Dumps with VCE and PDF 31-40

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

Programming in HTML5 with JavaScript and CSS3

Question No: 31 – (Topic 1)

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

lt;input id=quot;txtValuequot;/gt;

If a customer enters a value in the input field, then it must be a numeric value. You need to add validation to the input field.

Which HTML should you use?

  1. lt;input id=quot;txtValuequot; type-quot;textquot; pattern=quot;/#quot; /gt;

  2. lt;input id=quot;txtValuequot; type=quot;numberquot; /gt;

  3. lt;input id=quot;txtVa!uequot; type=quot;integerquot; /gt;

  4. lt;input id=quot;txtValuequot; type=quot;textquot; required=quot;requiredquot;/gt;

Answer: B

Explanation: HTML5 Input Types:

color date datetime

datetime-local email

month number range search tel

time url week

Reference: HTML Input Types http://www.w3schools.com/html/html5_form_input_types.asp

Question No: 32 – (Topic 1)

You are developing a web page that has a group of H1 and H2 elements. The page also includes a CSS class named underlineMe.

You have the following requirements:

-> The font color of all H1 and H2 elements must be changed to red.

-> The CSS class underlineMe must be applied to all H1 and H2 elements.

You need to update the web page to meet the requirements. Which code segment should you use?

Ensurepass 2018 PDF and VCE

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Answer: D

Explanation: The :header selector selects all header elements (lt;h1gt; to lt;h6gt;). Reference: jQuery :header Selector

http://www.w3schools.com/jquery/sel_header.asp

Question No: 33 – (Topic 1)

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

lt;input id = quot;txtValuequot; /gt;

A customer must enter a value in the text box prior to submitting the form. You need to add validation to the text box control.

Which HTML should you use?

  1. lt;input id=quot;txtValuequot; type=quot;textquot; required=quot;requiredquot;/gt;

  2. lt;input id=quot;txtValuequot; type=quot;textquot; pattern=quot;[A-Za-z]{3}quot; /gt;

  3. lt;input id=quot;txtValuequot; type=quot;requiredquot; /gt;

  4. lt;input id=quot;txtValuequot; type=quot;requiredquot; autocomplete=quot;onquot; /gt;

Answer: A

Explanation: Definition and Usage

The required attribute is a boolean attribute.

When present, it specifies that an input field must be filled out before submitting the form. Example

An HTML form with a required input field:

lt;form action=quot;demo_form.aspquot;gt;

Username: lt;input type=quot;textquot; name=quot;usrnamequot; requiredgt;

lt;input type=quot;submitquot;gt;

lt;/formgt;

Username: lt;input type=quot;textquot; name=quot;usrnamequot; requiredgt; Reference: HTML lt;inputgt; required Attribute

http://www.w3schools.com/tags/att_input_required.asp

Question No: 34 – (Topic 1)

You are developing an HTML5 web page.

The appearance of the text box must change when a user moves the focus to another element on the page.

You need to develop the page to respond to user action. Which line of code should you use?

  1. lt;input type=quot;textquot; onblur=quot;resetStyle(this);quot; /gt;

  2. lt;input type=quot;textquot; onfocus=quot;resetStyle(this);quot; /gt;

  3. lt;input type=quot;textquot; onreset=quot;resetStyle(this);quot; /gt;

  4. lt;input type=quot;textquot; onselect=quot;resetStyle(this);quot; /gt;

Answer: A

Explanation: Definition and Usage

The onblur event occurs when an object loses focus.

Example

Execute a JavaScript when a user leaves an input field:

lt;input type=quot;textquot; onblur=quot;myFunction()quot;gt;

Reference: onblur Event http://www.w3schools.com/jsref/event_onblur.asp

Question No: 35 – (Topic 1)

You are developing a web page by using HTML5.

You have the following requirements:

-> An H1 element must be placed at the top left corner of the page.

-> The size and location of the H1 element must not change if additional elements are added to the page.

You need to position the H1 element on the page. Which CSS3 style should you use?

Ensurepass 2018 PDF and VCE

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Answer: A

Explanation: * The position property specifies the type of positioning method used for an element (static, relative, absolute or fixed).

absolute: The element is positioned relative to its first positioned (not static) ancestor element

* For absolutely positioned elements, the left property sets the left edge of an element to a unit to the left/right of the left edge of its containing element.

CSS Syntax

left: auto|length|initial|inherit;

length: Sets the left edge position in px, cm, etc.

Incorrect:

position static: Default value. Elements render in order, as they appear in the document flow

Reference: CSS position Property; CSS left Property

Question No: 36 HOTSPOT – (Topic 1)

You are developing an HTML5 web application for displaying encyclopedia entries. Each encyclopedia entry has an associated image that is referred to in the entry.

You need to display the image by using the correct semantic markup.

What should you do? (To answer, select the appropriate options from the drop-down list in the answer area.)

Ensurepass 2018 PDF and VCE

Ensurepass 2018 PDF and VCE

Answer:

Ensurepass 2018 PDF and VCE

Explanation:

Ensurepass 2018 PDF and VCE

The lt;figuregt; element

The lt;figuregt; element is intended to be used in conjunction with the lt;figcaptiongt; element to mark up diagrams, illustrations, photos, and code examples (among other things).

Example:

lt;figuregt;

lt;img src=quot;/macaque.jpgquot; alt=quot;Macaque in the treesquot;gt;

lt;figcaptiongt;A cheeky macaque, Lower Kintaganban River, Borneo. Original by lt;a href=quot;http://www.flickr.com/photos/rclark/quot;gt;Richard Clarklt;/agt;lt;/figcaptiongt;

lt;/figuregt;

Question No: 37 – (Topic 1)

You are creating a class named Consultant that must inherit from the Employee class. The Consultant class must modify the inherited PayEmployee method. The Employee class is defined as follows.

function Employee() {} Employee.prototype.PayEmployee = function ( ){ alert(#39;Hi there!#39;);

}

Future instances of Consultant must be created with the overridden method. You need to write the code to implement the Consultant class.

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

  1. Consultant.PayEmployee = function ()

    {

    alert(#39;Pay Consulant#39;);

    }

  2. Consultant.prototype.PayEmployee = function ()

    {

    alert(#39;Pay Consultant#39;);

    }

  3. function Consultant () { Employee.call(this);

    }

    Consultant.prototype = new Employee(); Consultant.prototype.constructor = Consultant;

  4. function Consultant() { Employee.call(this); }

Consultant.prototype.constructor = Consultant.create;

Answer: B,C

Explanation: * Object.prototype.constructor

Returns a reference to the Object function that created the instance#39;s prototype. Note that the value of this property is a reference to the function itself, not a string containing the function#39;s name. The value is only read-only for primitive values such as 1, true and quot;testquot;.

* The constructor property is created together with the function as a single property of func.prototype.

Reference: Object.prototype.constructor

Question No: 38 DRAG DROP – (Topic 1)

You are developing a website that has many web pages with hyperlinks to other sites.

You need to ensure that if a hyperlink contains an image, the linked web page opens in a new window.

Which jQuery code segment or segments should you use? (To answer, drag the appropriate line of code to the correct location. Each line of code 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

  • a img

    All elements that are descendants of an element.

  • (this).parent

This is the element and is the parent.

Question No: 39 – (Topic 1)

You are developing an HTML5 page. The page includes the following code.

Ensurepass 2018 PDF and VCE

The inner paragraph must be exactly 15 pixels from the top left corner of the outer paragraph. You set the left style for the inner paragraph to the appropriate value.

You need to set the position property of the inner paragraph. Which value should you use?

  1. absolute

  2. static

  3. fixed

  4. relative

Answer: A

Explanation: absolute: The element is positioned relative to its first positioned (not static) ancestor element.

Incorrect: Not D:

relative: The element is positioned relative to its normal position, so quot;left:20quot; adds 20 pixels to the element#39;s LEFT position.

Reference: CSS position Property http://www.w3schools.com/cssref/pr_class_position.asp

Question No: 40 DRAG DROP – (Topic 1)

You are validating user input by using JavaScript and regular expressions.

A group of predefined regular expressions will validate two input fields:

-> An email address in a function named validateEmail (for example, firstname@contoso.com)

-> A nine-digit number that allows optional hyphens after the second and fifth character in a function named validateSSN(for example, 555555555 or 555-55- 5555)

You need to use the correct expression to validate the input.

Which expression should you insert into each function? (To answer, drag the appropriate regular expression statement to the correct location. Each regular expression statement 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

100% Ensurepass Free Download!
70-480 PDF
100% Ensurepass Free Guaranteed!
70-480 Dumps

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