New Updated Microsoft MCSD 70-480 Real Exam Questions and Answers Download 41-50

Ensurepass

QUESTION 41

DRAG DROP

You create the following JavaScript code:

 

70-480-demo-82

 

You must complete the ShowCanWeAfford() function:

 

  • Display the message Denied! If the PaymentAmount variable is greater than 500.

  • Display the message Approved! If the PaymentAmount variable is less than 300.

  • Display the message Approved with caution! If the PaymentAmount variable is less than 500 and greater than 300.

 

You need to add statements to the ShowCanWeAfford() JavaScript function to meet the requirements. 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-83

 

Correct Answer:

70-480-demo-84

 

 

QUESTION 42

DRAG DROP

You have a webpage that includes the following markup:

 

70-480-demo-85

 

An XML file named message.xml resides on a web server. The structure of the file is as follows:

 

70-480-demo-86

 

You are developing a code-based solution to parse the contents of the XML file and display the information on the page. The solution must work on both modern and older browsers. You need to display the information from the XML file onto the page. How should you create the JavaScript code? (Develop the solution by selecting the required code segments and arranging them in the correct order. You may not need all of the code segments.)

 

Select and Place:

70-480-demo-87

 

Correct Answer:

70-480-demo-88

 

 

 

QUESTION 43

HOTSPOT

You review a web form that contains the following markup and code:

 

70-480-demo-89

 

You need to ascertain how the webpage responds when it loads and how it reacts to user actions. 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.

 

Hot Area:

70-480-demo-90

 

Correct Answer:

70-480-demo-91

 

 

QUESTION 44

HOTSPOT

You test a webpage that contains the following JavaScript code:

 

70-480-demo-92

 

The webpage also contains the following markup:

 

70-480-demo-93

 

You need to ascertain how the webpage responds when the user enters characters and then
clicks the add and divide buttons. For each statement in the table, select Yes if the action causes the webpage to behave as described. Select No if it does not. Make only one selection in each column.

 

Hot Area:

70-480-demo-94

 

Correct Answer:

70-480-demo-95

 

 

QUESTION 45

An HTML page contains no embedded JavaScript or CSS code. The body of the page contains only the following line of code.

 

<p id=”test”>test</p>

 

A CSS style sheet must be applied dynamically. The style must visibly change the appearance of the paragraph on the page. You need to apply a style the paragraph. Which line of code should you use?

 

  1. document.getElementById(“test”).style.border = “0”;

  2. document.getElementById(“test”).style.position = “static”;

  3. document.getElementById (“test”).style.padding = “15px”;

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

 

Correct Answer: C

 

 

QUESTION 46

You develop an HTML5 web application. The web application contains a form that allows users to enter only their month of birth. The value that the users enter must be numbers between 1 and 12, inclusive. You need to implement the form element for the month of birth. Which element should you use?

 

  1. <input type=”time” options=”month” />

  2. <input types=”submit” value=”month” />

  3. <input type=”range” min=”l” max=”12″ />

  4. <input type=”month” itemscope=”numeric” />

 

Correct Answer: C

 

 

QUESTION 47

You are developing an HTML5 web application for an architectural company that displays architectural blueprints. The application must:

 

  • Display the blueprints at different zoom levels without loss of detail

  • Print the blueprints without loss of detail

  • Work from only one source file per blueprint

 

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

 

  1. CANVAS

  2. SAMP

  3. SVG

  4. AREA

 

Correct Answer: C

 

 

QUESTION 48

You develop an HTML5 application that allows users to upload files from their local computers. The user interface must remain responsive during the upload. You need to implement the file upload functionality for the application. Which two actions should you perform? (Each correct answer presents a complete solution. Choose two.)

 

  1. Use an HTML form with a file type INPUT element that targets a hidden IFRAME element.

  2. Use a file type INPUT element, and then use the Web Storage API to upload the file.

  3. Use a FormData object and upload the file by using XMLHttpRequest.

  4. Register the file protocol by using protocol handler registration API and then upload the file by using XMLHttpRequest.

  5. Use the FileSystem API to load the file, and then use the jQuery post method to upload the file to the server.

 

Correct Answer: BD

 

 

QUESTION 49

You are developing a web application that can function when users are not connected to the Internet. You need to check the Internet connectivity status of a user’s browser. Which method should you use?

 

  1.  

70-480-demo-96

 

  1.  

70-480-demo-97

 

  1.  

70-480-demo-98

 

  1.  

70-480-demo-99

Correct Answer: D

 

 

QUESTION 50

You are creating a page that contains detailed employee information for a company portal. The page uses a jQuery library. The page contains a hidden button named btnEdit that is defined by the following code.

 

<button id=”btnEdit” style=”display: none;n>Edit</button>

 

The button is not displayed by default. The button must be displayed only if the user is logged on. You need to add code to the document.ready() function to meet the requirements for the button. Which line of code should you use?

 

  1. $ (‘#btnEdit’).appear ();

  2. $ (‘#btnEdit’).visible = true;

  3. $ (‘#btnEdit’).show();

  4. $ (‘#btnEdit’).Visible();

 

Correct Answer: C

 

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

Try Microsoft MCSD 70-480 Free Demo