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 develop a webpage by using HTML5. You create the following markup: 

<input type "url" name= "website" required="required" /> 

You need to ensure that the value that the user enters contains a secure URL. 

What should you do? 

A. Add the following attribute to the input tag: value="https://v 

B. Add the following attribute to the input tag: pattern="https://.+" 

C. Add the following attribute to the input tag: value="ssl" 

D. Add the following attribute to the input tag: itemtype="https" 

Answer: B

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

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: D

Q3. You are creating a JavaScript function that displays the name of a web application. 

You declare the following button element. 

<input type="button" id= "About" value="About" /> 

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

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: CD 

Q4. You are developing an HTML5 web application. The application loads data from a web service by using AJAX. The application displays the data by calling the displayData function. The data is loaded by using the following code. 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: B

Q5. You are developing an HTML5 page that includes several paragraph elements. 

You have the following requirements: . 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? 

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

B. text-shadow: 5px lin 0px; 

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

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

Answer:

Q6. You are developing a customer web form that includes the following HTML. <label id="txtValue"X/label> 

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

"Confirmation": "1234", 

"FirstName": "John" 

You need to display the Confirmation number from the JSON response in the txtValue label field. 

Which JavaScript code segment should you use? 

A. $("#txtValue").val = (JSONObject.Confirmation); 

B. $("#txtValue").val (JSONObject.Confirmation); 

C. $("#txtValue").text = (JSONObject.Confirmation); 

D. $("#txtValue").text (JSONObject.Confirmation); 

Answer:

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

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

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

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

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

Answer:

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

A. JSON 

B. Window 

C. Parent 

D. String 

E. JavaScript 

F. DOM 

Answer: ADE 

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

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? 

A. xhr.upload.onloadeddata = 

B. xhr.upload.onplaying = 

C. xhr.upload.onseeking = 

D. xhr.upload.onprogress = 

Answer:

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

<input type="text" id="username" /> 

You need to prevent users from entering specific characters into the username field. 

What should you do? 

A. Using the keyup event, add an anonymous function that returns true when a specific character keycode value is determined. 

B. Using the change event, add an anonymous function that returns true when a specific character keycode value is determined. 

C. Using the keydown event, add an anonymous function that returns false when a specific character keycode value is determined. 

D. Using the change event, add an anonymous function that returns false when a specific character keycode value is determined. 

Answer: B