Ensurepass

QUESTION 21

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:

 

70-480-demo-20

 

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?

 

  1.  

70-480-demo-21

 

  1.  

70-480-demo-22

 

  1.  

70-480-demo-23

 

 

 

 

 

 

  1.  

70-480-demo-24

 

Correct Answer: C

 

 

QUESTION 22

You implement an application by using HTML5 and JavaScript. You create a webpage that contains the following HTML:

 

70-480-demo-25

 

The application must place a border on only the first UL element that is contained in the DIV element. You need to update the webpage. What should you do?

 

 

 

  1.  

70-480-demo-26

 

  1.  

70-480-demo-27

 

  1.  

70-480-demo-28

 

  1.  

70-480-demo-29

 

Correct Answer: B

 

 

QUESTION 23

You troubleshoot a webpage that contains the following HTML element:

 

<canvas id= “clickCanvas” width-“300”> height= “300”>

 

Your browser does not support the HTML5 canvas.</canvas>

 

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

 

70-480-demo-30

 

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= “clickReporter()”

  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;

 

Correct Answer: C

 

 

QUESTION 24

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

 

70-480-demo-31

 

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 < #dataTable

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

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

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

 

Correct Answer: C

 

 

QUESTION 25

You create an application that sends information to a web service by using the following code: (Line numbers are included for reference only.)

 

70-480-demo-32

 

When the web service returns a non-zero result code, you must raise an exception that contains the result code. You need to implement the code that generates the exception. Which line of code should you insert at line 04?

 

  1. CustomError .prototype = Error.prototype;

  2. CustomError [“ErrorType”] = Error;

  3. CustomError.customError = true;

  4. Error-constructor = CustomError;

 

Correct Answer: A

 

 

QUESTION 26

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

 

<input id= “textAccountType”/>

 

You need to develop the form so that customers can enter only a valid account type consisting of two English alphabet characters. Which code segment should you use?

 

  1.  

70-480-demo-33

 

  1.  

70-480-demo-34

 

  1.  

70-480-demo-35

 

  1.  

70-480-demo-36

 

Correct Answer: B

 

 

 

QUESTION 27

You are developing an application that uses a JavaScript library. The library contains the following functions.

 

70-480-demo-37

 

The application uses the following code. (Line numbers are included for reference only.)

 

70-480-demo-38

 

The library may throw many types of exceptions. The exceptions are grouped by category.

You need to catch and identify the exceptions by group.

Which code segment should you insert at line 05?

 

  1.  

70-480-demo-39

 

 

 

  1.  

70-480-demo-40

 

  1.  

70-480-demo-41

 

  1.  

70-480-demo-42

 

Correct Answer: B

 

 

QUESTION 28

DRAG DROP

You develop an HTML5 webpage. You have the following HTML markup:

 

70-480-demo-43

 

You also have the following JavaScript variable defined:

 

var languages = [];

You need to add statements to an existing JavaScript function to sort the list items. Which four actions should you perform in sequence? (Develop the solution by selecting the required code segments and arranging them in the correct order.)

 

Select and Place:

70-480-demo-44

 

Correct Answer:

70-480-demo-45

 

 

 

QUESTION 29

DRAG DROP

You create an HTML5 webpage. You have the following HTML markup:

 

70-480-demo-46

 

You also have the following JavaScript code segment:

 

var jsonFruit = { “apples” : “12”, “bananas” : “8”, “watermelon” : “3” }

 

You need to add additional rows to the fruitTable element by processing the jsonFruit values in the order listed. Which three actions should you perform in sequence? (Develop the solution by selecting the required code segments and arranging them in the correct order.)

 

Select and Place:

70-480-demo-47

 

Correct Answer:

70-480-demo-48

 

 

QUESTION 30

DRAG DROP

You have the following code:

 

70-480-demo-49

 

The web service returns a JSON object that contains two properties named Description and FileName. The PersonImage object must meet the following requirements:

 

  • Create an object that represents an image that will be displayed.

  • Set the image properties from the values that are returned by the web service.

  • Expose the image as a property of the PersonImage object.

You need to insert code at line 13 to complete the implementation of the PersonImage object. Which three actions should you perform in sequence to complete the implementation? (Develop the solution by selecting the required code segments and arranging them in the correct order.)

 

Select and Place:

70-480-demo-50

 

Correct Answer:

70-480-demo-51

 

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

Try Microsoft MCSD 70-480 Free Demo

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.