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

Q3. You create the following JavaScript code: 

You have the following requirements: 

. You must invoke a function that displays the vehicle information within the following HTML element: <div id="display"x/div> 

. The output of the function must appear on the webpage as follows: Vehicle Color is silverStay safe!Vehicle TransmissionType is manualBig machine! 

You need to invoke the JavaScript function to display the required output in the HTML element. 

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

A. Option A 

B. Option B 

C. Option C 

D. Option D 

E. Option E 

Answer: CE

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

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

A. document.getEIementById("picture").style.position = "relative"; 

B. document.getElementById("picture").style.top = "5px"; 

C. document.getEiementById("picture").style.top = "-5px"; 

D. document.getEIementById("picture").style.position = "absolute"; 

Answer: AB 

Q5. You develop a webpage that allows a user to download a 3PEG image and convert it to a PNG file. 

You need to implement the code to download the contents of the JPEG image with no additional decoding. 

Which JavaScript function should you use? 

A. readAsBinaryString() 

B. readAsArrayBuffer() 

C. readAsDataURL() 

D. readAsText() 

Answer:

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

You need to add a background color to the first article in each section. 

Which code segment should you add to the webpage? 

A. $ ("section article:first-child").css("background-color", "#f2f2f2"); 

B. $ ("section:first-child").ess ( "background-color", "#f2f2f2"); 

C. $ ("article:first-of-type") .css("background-color", "#f2f2f2"); 

D. $ ("section:first-of-type").css("background-color", "#f2f2f2"); 

Answer: C

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

A. <input type="text" onblur="resetStyle(this);" /> 

B. <input type="text" onfocus="resetStyle(this);" /> 

C. <input type="text" onreset="resetStyle(this);" /> 

D. <input type="text" onselect="resetStyle(this);" /> 

Answer:

Q8. You develop a webpage by using HTML5. 

The user interface of the webpage must show a gray-lined box that contains the label Enter your information:. Inside the box are two labels and two input boxes. The first input box must be labeled Name:. The second input box must be labeled Email:. 

Below the box is a Submit button. 

The user interface must look like the following; You need to create the user interface. Which markup should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: B

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

What is displayed in the alert from line 11? 

A. Div 

B. Function 

C. Button 

D. Document 

Answer:

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

<input id="txtValue"/> 

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? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: