aiotestking uk

70-480 Exam Questions - Online Test


70-480 Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

Q1. You are developing an HTML5 page named main.html. The JavaScript code for the main page is located in a file named myApp.js. 

You need to create a web worker and instantiate it from main.html. 

Where should you place the web worker code? 

A. In the myApp.js file 

B. In the main.html file 

C. In a separate .js (JavaScript) file 

D. In a separate executable file 

Answer: C

Q2. 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? 

A. hidden 

B. blink 

C. capitalize 

D. line-through 

Answer:

Q3. You are creating a rotating image of a company logo. 

The logo must spin on a horizontal axis and on a vertical axis. 

You need to use the least amount of development effort to meet the requirement. 

What should you do? 

A. Create an Image Spinner object, load the image into the spinner, and set the horizontal and vertical rotation properties. 

B. Create a Canvas Globe transform and set the image as the globe object. Set the horizontal and vertical rotation properties. 

C. Create a single Canvas 3D transform and load the image into it. Set the rotation properties. 

D. Create a Canvas 2D transform and set the image to rotate horizontally and vertically. 

Answer: C

Q4. You are creating a custom object as described by the following code. 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: D

Q5. 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? 

A. xhr.onCallback = xhrHandler; 

B. xhr.onreadystatechange = xhrHandler; 

C. xhr.readyState = xhrHandler; 

D. xhr.status = xhrHandler; 

Answer:

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

<input id = "txtValue" /> 

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? 

A. <input id="txtValue" type="text" required="required"/> 

B. <input id="txtValue" type="text" pattern="[A-Za-z]{3}" /> 

C. <input id="txtValue" type="required" /> 

D. <input id="txtValue" type="required" autocomplete="on" /> 

Answer:

Q7. You develop an HTML5 application for a company. Employees must enter a personal identification number (PIN) in an INPUT element named SecurityCode to access their employee records. 

The SecurityCode element must meet the following requirements: 

Allow up to 6 digits. 

Do not display numbers as they are entered. 

Display the text Enter PIN Code before the user enters any data. 

You need to implement the SecurityCode element. 

Which HTML markup should you add to the application? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

E. Option E 

Answer: D

Q8. You are developing an application to track project management for your company. The status of the project is stored in a variable named percentComplete. 

The method must execute only when percentComplete is equal to the numeric value 100. 

You need to develop the application to meet the requirement. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: D

Q9. You need to test the value of the following variable in JavaScript. 

var length = "75"; 

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

A. if (length = = = 75) 

B. if (length = = 75) 

C. if (length! = 75) 

D. if (length = = "75") 

Answer: BD 

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

You need to change the background color for all of the elements whose name attribute ends with the word name. 

Which code segment should you add to the webpage? 

A. $ ('#name').css ({ 'background-color' : '#E0ECF8' }); 

B. $ ('input [name |="name"; ] ' ) .css (( 'background-color' : '#E0ECF8'}); 

C. $('input[name$="name"]'). css{{'background-color' : '#E0ECF8'}); 

D. $ ('*name' ) .css ({ 'background-color' : ' #E0ECF8'}) ; 

Answer: C