Categories
70-480 Dumps

70-480 Real Exam Dumps Questions and answers 31-40

Get Full Version of the Exam
http://www.EnsurePass.com/70-480.html

Question No.31

You are developing an HTML5 page that includes several paragraph elements. You have the following requirements:

image

image

Add a drop shadow that is one inch below the text in the paragraph 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?

  1. text-shadow: 72pt 0pt 5pt

  2. text-shadow: 5px 1in 0px;

  3. text-shadow: 72pt 5em 0px

  4. text-shadow: 72pt 0em 5px;

Correct Answer: D

Explanation:

D is the most correct.

Reference:

CSS Text Module Level 3 http://www.w3.org/TR/css3-text/#text-shadow

Note:

All options are incorrect nearest correct answers are B or D.

#obj {text-shadow: lt;x-offsetgt; lt;y-offsetgt; lt;blur-radiusgt; lt;colorgt;; }

lt;x-offsetgt; n right -n left

lt;y-offsetgt; n bottom -n top

1 inch below means lt;y-ffsetgt; is 1in or 72 pt Hence actually answer must be

0px, 1in, 5px or

0px, 72pt, 5px

Question No.32

You are creating a web form that users will use to enter their personal information. The form includes the following HTML.

image

You have the following requirements:

image

image

When a user enters an input box, the cell on the right must turn green. When a user leaves an input box, the cell on the right must turn white.

You need to create the web form to meet these requirements. Which code segment should you use?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: A

Question No.33

You are developing a web page. You create a grid layout by using the following CSS segment.

image

You have the following requirements:

image

image

You must place content in the first column of the second row. The content must span two columns.

You need to ensure that the style of the grid meets the requirements. Which CSS segment should you use?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: A

Question No.34

DRAG DROP

You are creating an application by using HTML5 and CSS3. The styles for the pages are derived from five style sheets.

The styles are not being applied correctly to the pages in the application. You need to apply the styles from highest priority to lowest priority.

In which order should you use the five style sheets? (To answer, move the style sheet types from the list of style sheet types to the answer area and arrange them in the correct order.)

image

Correct Answer:

image

Question No.35

You are developing a web page by using HTML5. You have the following requirements:

image

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

image

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 CS53 style should you use?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: A

Question No.36

You are styling a box object on a page by using CSS3. You need to set the transparency of the object to 50%.

Which two CSS3 styles will achieve the goal? (Each correct answer presents a complete solution. Choose two.)

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: BC

Explanation:

http://www.css3.info/introduction-opacity-rgba/

Question No.37

HOTSPOT

You are developing a web page that will be accessed from various types of devices. You have the following requirements:

image

The appropriate display resolution must be selected dynamically based on the device connecting to the page.

image

Mobile devices with a maximum width of 480 pixels must be able to use the page. You need to ensure that the page displays correctly on any device.

How should you build the code? (To answer, select the appropriate options from the drop- down lists in the answer area.)

image

image

Correct Answer:

image

Question No.38

You are developing an HTML5 web application and are styling text. You need to use the text-transform CSS property.

Which values are valid for the text-transform property?

  1. hidden

  2. blink

  3. capitalize

  4. line-through

Correct Answer: C

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 No.39

DRAG DROP

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.)

image

Correct Answer:

image

Question No.40

You are developing a page that includes text and an illustration. The web page resembles the following image.

image

You have the following requirements:

image

The illustration must be in the center of the page.

image

The text must flow around the left, right, top, and bottom of the illustration.

You need to ensure that the layout of the web page meets the requirements. Which line of code should you use?

  1. -ms-wrap-side: both;

  2. -ms-wrap-side: clear;

  3. -ms-wrap-side: maximum;

  4. -ms-wrap-side: auto;

Correct Answer: A

Explanation:

http://msdn.microsoft.com/en-us/library/ie/hh673558(v=vs.85).aspx http://dev.w3.org/csswg/css3-exclusions/

Get Full Version of 70-480 Dumps

Categories
70-480 Dumps

70-480 Real Exam Dumps Questions and answers 41-50

Get Full Version of the Exam
http://www.EnsurePass.com/70-480.html

Question No.41

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

You have the following requirements:

image

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

image

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?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: D

Explanation:

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

Question No.42

HOTSPOT

You are developing an HTML5 application for a company. You apply the following style to a DIV element on a page.

image

You need to submit a draft illustration of the results of this code.

Which illustration should you submit? (To answer, select the appropriate illustration in the answer area.)

image

Correct Answer:

image

Question No.43

DRAG DROP

You are developing a web page that will be accessed from various types of devices. You have the following requirements:

image

The appropriate display resolution must be selected dynamically based on the device that is connecting to the page.

image

Mobile devices with a maximum width of 480 pixels must be able to use the page. You need to ensure that the page displays correctly on any device.

How should you build the code? (To answer, drag the appropriate media statement to the correct location. Each media 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.)

image

Correct Answer:

image

Question No.44

DRAG DROP

You are developing a web page by using HTML5 and CSS3.

Hyperlinks on the page must be rendered with a style that reflects the last user action performed. You need to style the four anchor elements in the document.

In what order should you specify the four anchor selectors? (To answer, move the appropriate anchor selectors from the list of CSS codes to the answer area and arrange them in the correct order.)

image

Correct Answer:

image

Question No.45

You are developing a web page that will be divided into three vertical sections. The main content of the site will be placed in the center section. The two outer sections will contain advertisements.

You have the following requirements:

image

image

The main content section must be set to two times the width of the advertising sections. The layout must be specified by using the CSS3 flexible box model.

You need to ensure that the visual layout of the page meets the requirements. Which CSS3 property should you use?

  1. box-orient

  2. box-flex-group

  3. box-flex

  4. box-direction

Correct Answer: C

Explanation:

http://www.html5rocks.com/en/tutorials/flexbox/quick/

Question No.46

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

image

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

Correct Answer: A

Explanation:

http://www.w3schools.com/cssref/pr_class_position.asp

Question No.47

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;

Correct Answer: B

Explanation:

http://www.w3schools.com/html/html5_form_input_types.asp

Question No.48

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

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

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

Which HTML should you use?

  1. lt;input id=quot;txtValuequot; type=quot;codequot; /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;textquot; required=quot;requiredquot;/gt;

  4. lt;input id=quot;txtValuequot; type=quot;countryquot; /gt;

Correct Answer: B

Explanation:

http://www.w3schools.com/html5/att_input_pattern.asp

Question No.49

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

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

You need to ensure that a value is entered into txtValue before the form is submitted. Which code segment should you use?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: A

Question No.50

HOTSPOT

You are developing a form that captures a user#39;s email address by using HTML5 and jQuery.

The form must capture the email address and return it as a query string parameter. The query string parameter must display the @ symbol used in the email address.

You need to implement this functionality.

How should you develop the form? (To answer, select the appropriate options from the drop- down lists in the answer area.)

image

Correct Answer:

image

Get Full Version of 70-480 Dumps

Categories
70-480 Dumps

70-480 Real Exam Dumps Questions and answers 51-60

Get Full Version of the Exam
http://www.EnsurePass.com/70-480.html

Question No.51

You are developing a web page that consumes a Windows Communication Foundation (WCF) service. The page includes the following code segment.

var xhr = new XMLHttpRequest() ;

The page uses the xhrHandler() method to listen for changes to the request status of the WCF service calls. It uses the xmlToJavaScript() method to convert the response from the WCF service to a JavaScript object.

The xhrHandler() method must be called automatically each time the request status changes.

You need to add the event handler to the request object.

Which line of code should you use?

  1. xhr.onCallback = xhrHandler;

  2. xhr.onreadystatechange = xhrHandler;

  3. xhr.readyState = xhrHandler;

  4. xhr.status = xhrHandler;

Correct Answer: B

Explanation:

http://mrfwebdesign.blogspot.ca/2008/11/xmlhttprequest-xhr.html

Question No.52

DRAG DROP

You are developing a web application that retrieves data from a web service. The data being retrieved is a custom binary datatype named bint. The data can also be represented in XML.

Two existing methods named parseXml() and parseBint() are defined on the page. The application must:

image

Retrieve and parse data from the web service by using binary format if possible

image

Retrieve and parse the data from the web service by using XML when binary format is not possible

You need to develop the application to meet the requirements.

What should you do? (To answer, drag the appropriate code segment to the correct location. 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.)

image

Correct Answer:

image

Question No.53

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

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

You need to develop the form so that customers can enter only a valid country code consisting of three English alphabet characters.

Which code segment should you use?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: C

Question No.54

You are developing an application that consumes an external web service that returns the latest stock rate.

The application has two methods:

image

The getResults() method makes an AJAX web service request

image

The ShowRate() method displays the stock rate from the web service response

You need to ensure that the ShowRate() method always displays the latest stock rate. Which code segment should you use?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: D

Question No.55

DRAG DROP

You are developing an application that reads information from a file. The application must:

image

Execute a block of code if there is an error accessing the file

image

Execute a second block of code whether or not there is an error accessing the file

You need to ensure that the error handling requirements are met.

Which three statements should you implement in sequence? (To answer, move the appropriate statements from the list of actions to the answer area and arrange them in the correct order.)

image

Correct Answer:

image

Question No.56

HOTSPOT

You are developing an online shopping application that accepts credit cards for payment. If the credit card number is invalid, the application must:

image

Generate an error

image

image

Assign quot;200quot; to the error number Assign quot;Invalidquot; to the error description

You need to write the code that meets the requirements.

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

image

Correct Answer:

image

Question No.57

You are creating a JavaScript function to display the current version of a web application You declare a button as follows.

lt;input type=quot;buttonquot; id=quot;Aboutquot; value=quot;Aboutquot; /gt;

You need to create an event handler for the button by using an anonymous function. Which code segment should you use?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: C

Question No.58

DRAG DROP

You are creating a function by using JavaScript. The function accepts an object as the parameter and returns a string that identifies the data type of the object.

You have the following requirements:

image

image

The function must return quot;Numberquot; if the object is a number The function must return quot;Stringquot; if the object is a string

image

The function must return quot;Unknownquot; if the object is neither a number nor a string

You need to implement the function to meet the requirements.

How should you build the code segment? (To answer, drag the appropriate word to the correct location in the code segment. Each word 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.)

image

Correct Answer:

image

Question No.59

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:

image

image

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)

Correct Answer: B

Explanation:

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

Question No.60

DRAG DROP

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

The application must:

image

Store a list of country codes in an array

image

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

image

image

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.)

image

Correct Answer:

image

Get Full Version of 70-480 Dumps

Categories
70-480 Dumps

70-480 Real Exam Dumps Questions and answers 61-70

Get Full Version of the Exam
http://www.EnsurePass.com/70-480.html

Question No.61

DRAG DROP

You are creating a web worker for an HTML5 application.

The following tasks must be performed from within the web worker:

image

image

Register an event listener for the web worker Start and stop the web worker

You need to define a function that performs the required tasks.

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

image

Correct Answer:

image

Question No.62

You are developing a web application that uses web workers to process images extracted from an HTML5 CANVAS object on a web page.

You need to pass messages between the web workers and the web page.

Which three types of objects should you use? (Each correct answer presents a complete solution. Choose three.)

  1. JSON

  2. Window

  3. Parent

  4. String

  5. JavaScript

  6. DOM

Correct Answer: ADE

Question No.63

DRAG DROP

You are developing an airline reservation website by using HTML5 and JavaScript. A page on the site allows users to enter departure and destination airport information and to search for tickets.

You have the following requirements:

image

Users must be able to save information in the application about their favorite destination airport.

image

The airport information must be displayed in the destination text box whenever the user returns to the page.

You need to develop the site to meet the requirements.

Which line or lines of code should you use? (To answer, drag the appropriate command or commands from the list of commands to the correct location or locations in the work area. 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.)

image

Correct Answer:

image

Question No.64

You are creating a class named Sedan that must inherit from the Car class. The Sedan class must modify the inherited fourDoor () method. The Car class is defined as follows.

image

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

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

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: BC

Question No.65

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;navgt;

  2. lt;articlegt;

  3. lt;spangt;

  4. lt;divgt;

Correct Answer: B

Explanation: http://www.w3schools.com/tags/tag_article.asp http://www.w3schools.com/html/html5_new_elements.asp

Question No.66

You are developing application web form by using HTML5 and JavaScript. You need to prevent users from submitting form data more than once.

Which code segment should you use?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: A

Question No.67

You are developing an HTML5 web application for a surveyor company that displays topographic images.

The application must:

image

image

Display the topographic images at different zoom levels without loss of detail Print the topographic images without loss of detail

image

Work from only one source file for each topographic image

You need to ensure that the topographic images display according to the requirements. Which HTML5 element should you use?

  1. SVG

  2. CANVAS

  3. SAMP

  4. AREA

Correct Answer: A

Question No.68

DRAG DROP

An HTML page has a CANVAS element.

You need to draw a red rectangle on the CANVAS element dynamically. The rectangle should resemble the following graphic.

image

How should you build the code segment? (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.)

image

Correct Answer:

image

Question No.69

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

image

image

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.

image

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;

Correct Answer: A

Question No.70

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;

Correct Answer: C

Get Full Version of 70-480 Dumps

Categories
70-480 Dumps

70-480 Real Exam Dumps Questions and answers 71-80

Get Full Version of the Exam
http://www.EnsurePass.com/70-480.html

Question No.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?

  1. Lowercase

  2. Blink

  3. Line-through

  4. 20px

Correct Answer: A

Question No.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:

image

All runners must enter their age.

image

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

image

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.)

image

Correct Answer:

image

Question No.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?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: D

Question No.74

You are developing an HTML5 page that includes several paragraph elements. You have the following requirements:

image

image

Add a drop shadow that is one inch below the text in the paragraph 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?

  1. Text-shadow: 72pt 0pt 5pt

  2. Text-shadow: 5px 1in 0px;

  3. Text-shadow: 72pt 0em 5px;

  4. 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 No.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?

  1. Capitalize

  2. Red

  3. 20px

  4. 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 No.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?

  1. lt;articlegt;

  2. lt;tablegt;

  3. lt;divgt;

  4. lt;spangt;

Correct 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.77

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

image

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.)

  1. document.getEIementById(quot;picturequot;).style.position = quot;relativequot;;

  2. document.getElementById(quot;picturequot;).style.top = quot;5pxquot;;

  3. document.getEiementById(quot;picturequot;).style.top = quot;-5pxquot;;

  4. document.getEIementById(quot;picturequot;).style.position = quot;absolutequot;;

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=quot;auto|length|%|inheritquot;

    Where:

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

    Question No.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?

    1. lt;sectiongt;

    2. lt;tbodygt;

    3. lt;divgt;

    4. lt;tablegt;

    Correct Answer: A

    Explanation:

    The lt;sectiongt; tag defines sections in a document. Such as chapters, headers, footers, or any other sections of the document.

    Question No.79

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

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

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

    Which HTML should you use?

    1. lt;input id=quot;txtValuequot; type=quot;countryquot;/gt;

    2. lt;input id=quot;txtValuequot; type=quot;textquot; required=quot;xxxquot;/gt;

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

    4. lt;input id=quot;txtValuen type=quot;codequot; patternquot;=quot;countryquot;/gt;

    Correct Answer: C

    Question No.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?

    1. Capitalize

    2. Hidden

    3. Italic

    4. 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;}

    Get Full Version of 70-480 Dumps

Categories
70-480 Dumps

70-480 Real Exam Dumps Questions and answers 81-90

Get Full Version of the Exam
http://www.EnsurePass.com/70-480.html

Question No.81

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. Italic

  2. Line-through

  3. Capitalize

  4. 20px

Correct Answer: C

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 No.82

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;tbodygt;

  2. lt;articlegt;

  3. lt;divgt;

  4. lt;spangt;

Correct Answer: B

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.83

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;spangt;

  2. lt;navgt;

  3. lt;cablegt;

  4. lt;sectiongt;

Correct Answer: D

Explanation:

The lt;sectiongt; tag defines sections in a document. Such as chapters, headers, footers, or any other sections of the document.

Question No.84

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

Correct Answer: C

Question No.85

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. lowercase

  2. 20px

  3. line-through

  4. italic

Correct Answer: A

Question No.86

DRAG DROP

You are creating an application by using HTML5 and CSS3. The styles for the pages are derived from five style sheets.

The styles are not being applied correctly to the pages in the application.

You need to determine the order in which the style sheets will be applied by the browser.

In which order will the five style sheets be applied? (To answer, move the style sheet types from the list of style sheet types to the answer area and arrange them in the order that they will be applied.)

image

Correct Answer:

image

Question No.87

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. Italic

  2. Red

  3. Capitalize

  4. Line-through

Correct Answer: C

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 No.88

You develop an HTML5 webpage. You have the following HTML markup: (Line numbers are for reference only.)

image

The webpage also contains the following CSS markup:

image

You need to determine how the webpage will appear when the CSS styles are applied. Select two.

  1. The first row of the table will have a red background.

  2. The second row of the table will have a red background.

  3. The second cell in the first row of the table will have a blue background.

  4. The second cell in the third row of the table will have a blue background.

  5. The second cell in the third row of the table will have not have blue background.

Correct Answer: AD

Question No.89

HOTSPOT

You are reviewing the CSS markup for an HTML5 page that displays a news article. The CSS markup for the page is as follows:

image

The HTML markup for the page is as follows:

image

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

image

Correct Answer:

image

Question No.90

HOTSPOT

You review code that uses WebSockets for a browser-based multiplayer game. Each player sends a move to the server, which then sends the move to all connected game instances. The following code runs in the browser and handles the sending and receiving of moves:

image

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

image

Correct Answer:

image

Get Full Version of 70-480 Dumps

Categories
70-480 Dumps

70-480 Real Exam Dumps Questions and answers 21-30

Get Full Version of the Exam
http://www.EnsurePass.com/70-480.html

Question No.21

HOTSPOT

You are creating a web worker for an HTML5 application.

The following tasks must be performed from within the web worker:

image

image

Register an event listener for the web worker Start and stop the web worker

You need to define a function that performs the required tasks.

Which code segment should you use? (To answer, select the appropriate option from the drop- down list in the answer area.)

image

image

Correct Answer:

image

Question No.22

You are creating a JavaScript function that displays the name of a web application. You declare the following button element.

lt;input type=quot;buttonquot; id= quot;Aboutquot; value=quot;Aboutquot; /gt;

When a user clicks the button, a JavaScript function named About must be called.

You need to create an event handler that calls the About function when the button is clicked.

Which two code segments can you use? (Each correct answer presents a complete solution. Choose two.)

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: CD

Explanation: http://help.dottoro.com/ljeuqqoq.php http://help.dottoro.com/ljinxrmt.php

Question No.23

HOTSPOT

You are creating a function by using JavaScript. The function accepts an object as the parameter and returns a string that identifies the data type of the object.

You have the following requirements:

image

image

The function must return quot;Numberquot; if the object is a number. The function must return quot;Stringquot; if the object is a string.

image

The function must return quot;Unknownquot; if the object is neither a number nor a string.

You need to implement the function to meet the requirements.

How should you build the code segment? (To answer, select the appropriate options from the drop-down lists in the answer area.)

image

image

Correct Answer:

image

Question No.24

You need to test the value of the following variable in JavaScript. var length = quot;75quot;;

A block of code must execute if the length equals 75 regardless of the data type. You need to use the statement that meets this requirement.

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

  1. if (length = = = 75)

  2. if (length = = 75)

  3. if (length! = 75)

  4. if (length = = quot;75quot;)

Correct Answer: BD

Question No.25

You are developing an application that uses a third-party JavaScript library named doWork().

The library occasionally throws an quot;object is null or undefinedquot; error with an error code of – 2146823281.

The application must:

image

image

Extract and handle the exceptions thrown by doWork() Continue normal program execution if other exceptions occur

You need to implement the requirements. Which code segment should you use?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: C

Question No.26

You are troubleshooting a web page that includes the following code. (Line numbers are included for reference only.)

image

What is displayed in the alert from line 11?

  1. Div

  2. Function

  3. Button

  4. Document

Correct Answer: C

Question No.27

You are developing a web application that consumes services from a third-party application. A web worker processes the third-party application requests in the background. A page in the application instantiates the web worker process.

You need to establish two-way communications between the web worker process and the page. Which two actions will achieve this goal? (Each correct answer presents a complete solution.

Choose two.)

  1. From the web worker, use the onconnect event handler of the main page to capture events.

  2. From the main page, use the onmessage event handler of the web worker to capture events.

  3. From the web worker, use the onmessage event handler of the main page to capture events.

  4. From the main page, use the onconnect event handler of the web worker to capture events.

Correct Answer: BC

Explanation: http://www.w3schools.com/html/html5_serversentevents.asp http://www.html5rocks.com/en/tutorials/workers/basics/

Question No.28

You are developing an HTML5 web application that displays customer mailing address information.

The application loads addresses from a web service by using AJAX. The following code defines a Customer object and loads address data.

image

You need to implement the loadAddress function. Which code segment should you use?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: C

Question No.29

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;

Correct Answer: A

Explanation:

http://www.w3schools.com/jsref/event_onblur.asp

Question No.30

DRAG DROP

You are developing an online shopping application that accepts credit cards for payment. If the credit card number is invalid, the application must:

image

Generate an error

image

image

Assign quot;200quot; to the error number Assign quot;Invalidquot; to the error description

You need to write the code that meets the requirements.

How should you write the code? (To answer, drag the appropriate code segment or segments to the correct location in the answer 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.)

image

Correct Answer:

image

Get Full Version of 70-480 Dumps

Categories
70-480 Dumps

70-480 Real Exam Dumps Questions and answers 1-10

Get Full Version of the Exam
http://www.EnsurePass.com/70-480.html

Question No.1

DRAG DROP

You are validating user input by using JavaScript and regular expressions. A group of predefined regular expressions will validate two input fields:

image

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

image

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.)

image

Correct Answer:

image

Question No.2

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

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

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

Which code segment should you use?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: D

Question No.3

You are developing a customer contact form that will be displayed on a page of a company#39;s website. The page collects information about the customer.

If a customer enters a value before submitting the form, it must be a valid email address. You need to ensure that the data validation requirement is met.

What should you use?

  1. lt;input name=quot;emailquot; type=quot;urlquot;/gt;

  2. lt;input name=quot;emailquot; type=quot;textquot; required=quot;requiredquot;/gt;

  3. lt;input name=quot;emailquot; type=quot;textquot;/gt;

  4. lt;input name=quot;emailquot; type=quot;emailquot;/gt;

Correct Answer: D

Explanation:

http://www.w3schools.com/html/html5_form_input_types.asp

Question No.4

DRAG DROP

You are developing a form that captures a user#39;s email address by using HTML5 and jQuery.

The form must capture the email address and return it as a query string parameter. The query string parameter must display the @ symbol that is used in the email address.

You need to implement this functionality.

How should you develop the form? (To answer, drag the appropriate code segment to the correct target or targets in the answer 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.)

image

Correct Answer:

image

Question No.5

You are developing an application that consumes a Windows Communication Foundation (WCF) service.

The application interacts with the service by using the following code. (Line numbers are included for reference only.)

image

You need to authenticate to the WCF service. What should you do?

  1. At line 11, add the following lines of code.

    ,username: yourusername

    ,password: yourpassword

  2. At line 11, add the following line of code.

    ,credentials: prompt

  3. At line 06, replace the code with the following line of code. url: quot;http://contoso.com/Service.svc/GetCountry? Username=usernameamp;password=pssswordquot;,

  4. At line 11, add the following line of code. The username and password will be stored in an XML file.

,credentials: credentials.xml

Correct Answer: A

Explanation:

http://msdn.microsoft.com/en-us/library/ie/hh673558(v=vs.85).aspx

Question No.6

You are developing a web page that enables customers to upload documents to a web server. The page includes an HTML5 PROGRESS element named progressBar that displays information about the status of the upload.

The page includes the following code. (Line numbers are included for reference only.)

image

An event handler must be attached to the request object to update the PROGRESS element on the page.

You need to ensure that the status of the upload is displayed in the progress bar. Which line of code should you insert at line 03?

  1. xhr.upload.onloadeddata =

  2. xhr.upload.onplaying =

  3. xhr.upload.onseeking =

  4. xhr.upload.onprogress =

Correct Answer: D

Explanation:

http://stackoverflow.com/questions/3352555/xhr-upload-progress-is-100-from-the-start

Question No.7

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

lt;label id=quot;txtValuequot;X/labelgt;

Information from the web form is submitted to a web service. The web service returns the following JSON object.

{

quot;Confirmationquot;: quot;1234quot;, quot;FirstNamequot;: quot;Johnquot;

}

You need to display the Confirmation number from the JSON response in the txtValue label field. Which JavaScript code segment should you use?

  1. $(quot;#txtValuequot;).val = (JSONObject.Confirmation);

  2. $(quot;#txtValuequot;).val (JSONObject.Confirmation);

  3. $(quot;#txtValuequot;).text = (JSONObject.Confirmation);

  4. $(quot;#txtValuequot;).text (JSONObject.Confirmation);

Correct Answer: D Explanation: http://api.jquery.com/text/

Question No.8

HOTSPOT

You are developing a web application that retrieves data from a web service. The data being retrieved is a custom binary datatype named bint. The data can also be represented in XML.

Two existing methods named parseXml() and parseBint() are defined on the page. The application must:

image

Retrieve and parse data from the web service using binary format if possible

image

Retrieve and parse the data from the web service using XML when binary format is not possible

You need to develop the application to meet the requirements.

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

image

image

Correct Answer:

image

Question No.9

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;

Correct Answer: A

Explanation:

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

Question No.10

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:

image

All runners must enter their age.

image

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

image

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.)

image

Correct Answer:

image

Get Full Version of 70-480 Dumps

Categories
70-480 Dumps

70-480 Real Exam Dumps Questions and answers 11-20

Get Full Version of the Exam
http://www.EnsurePass.com/70-480.html

Question No.11

You are developing an HTML5 web application that displays the current temperature whenever a button is clicked. The following code provides this functionality.

image

When the temperature is loaded, the status property on the loader instance does not change.

You need to ensure that the status property on the loader instance is updated when the temperature is loaded.

Which code segment should you use to replace the Loader function?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: A

Question No.12

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 ( ){ alertt#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;

Correct Answer: BC

Question No.13

You are modifying an existing web page. The page is being optimized for accessibility. The current page contains the following HTML.

image

Standards-compliant screen readers must be able to identify the links contained within the navigation structure automatically.

You need to create the navigation link structure in the page.

With which container tags should you wrap the existing markup?

  1. lt;navmapgt; lt;/navmapgt;

  2. lt;div id=quot;navquot;gt; lt;/divgt;

  3. lt;navgt; lt;/navgt;

  4. lt;mapgt; lt;/mapgt;

Correct Answer: C

Explanation:

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

Question No.14

HOTSPOT

You are developing an airline reservation website by using HTML5 and JavaScript. A page on the site allows users to enter departure and destination airport information and search for tickets.

You have the following requirements:

image

Users must be able to save information in the application about their favorite destination airport.

image

The airport information must be displayed in the destination text box whenever the user returns to the page.

You need to develop the site to meet the requirements.

Which lines of code should you use? (To answer, select the appropriate options from the drop- down lists in the answer area.)

image

image

Correct Answer:

image

Question No.15

HOTSPOT

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.)

image

image

Correct Answer:

image

Question No.16

You are creating a JavaScript object that represents a customer.

You need to extend the Customer object by adding the GetCommission() method.

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

Which code segment should you use?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: D

Question No.17

You are developing a web form that includes the following code.

image

When a user selects the check box, an input text box must be added to the page dynamically. You need to ensure that the text box is added.

Which function should you use?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: B

Question No.18

HOTSPOT

An HTML page has a canvas element.

You need to draw a red rectangle on the canvas element dynamically. The rectangle should resemble the following graphic.

image

How should you build the code segment? (To answer, select the appropriate options from the drop-down lists in the answer area.)

image

image

Correct Answer:

image

Question No.19

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

lt;divgt; Logo:lt;brgt;

lt;div id=quot;logoquot;gt;

lt;/divgt;

lt;/divgt;

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

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

  1. document.getElementById(quot;logoquot;) .style.position = quot;relativequot;;

  2. document.getElementByld(quot;logoquot;).Style.top = quot;5pxquot;;

  3. document.getElementById(quot;logoquot;).style.top = quot;-5pxquot;;

  4. document.getElementById(quot;logoquot;).style.position = quot;absolutequot;;

Correct Answer: AB

Explanation: http://www.w3schools.com/cssref/pr_class_position.asp http://www.w3schools.com/cssref/pr_pos_top.asp

Question No.20

You are developing a web page by using HTML5 and C5S3. The page includes a lt;divgt; tag with the ID set to validate.

When the page is rendered, the contents of the lt;divgt; tag appear on a line separate from the content above and below it. The rendered page resembles the following graphic.

image

The page must be rendered so that the lt;divgt; tag is not forced to be separate from the other content. The following graphic shows the correctly rendered output.

image

You need to ensure that the page is rendered to meet the requirement. Which line of code should you use?

  1. document.getElementById(quot;validatequot;).style.display = quot;inlinequot;;

  2. document.getElementById(quot;validatequot;).style.margin = quot;0quot;;

  3. document.getElementById(quot;validatequot;).style.padding = quot;0quot;;

  4. document.getElementSyId(quot;validatequot;).style.display = quot;blockquot;;

Correct Answer: A

Explanation:

http://www.w3schools.com/cssref/pr_class_display.asp

Get Full Version of 70-480 Dumps