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

You need to invoke the clickReporter() JavaScript function when a user clicks the mouse on the canvas HTML element. 

What should you do? 

A. Add the following attribute to the canvas HTML element: clicked= "clickReporter()" 

B. Replace the code segment at line 06 with the following code segment: drawBox.Click += clickReporter; 

C. Insert the following code segment at line 07: canvas.onclick = clickReporter; 

D. Insert the following code segment at line 07: canvas, click = clickReporter; 

Answer:

Q2. You are developing an HTML5 web application that provides a discussion forum for users. When a user registers to access the application, the user enters an email address. 

Users can enter data that can result in cross-site scripting (XSS) attacks. 

You need to ensure that email input is as secure as possible. 

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

A. Remove all nonalphanumeric characters before submitting data. 

B. Use the email tag in forms where the email address is entered. 

C. Display all email addresses inside of an HTML5 ADDRESS element. 

D. Use jQuery validation with a regular expression to ensure that email addresses are valid. 

E. Ensure that all form data is encrypted when it is submitted. 

Answer: BD

Q3. You are developing an e-commerce website. Users place products into a shopping cart. You need to ensure that the shopping cart data is available between browser sessions. Which object should you use to store the shopping cart data? 

A. clientStorage 

B. localStorage 

C. applicationStorage 

D. sessionStorage 

Answer: B

Q4. You are developing a customer web form that includes the following HTML input field. 

<input id="txtValue"/> 

If a customer enters a value in the input field, then it must be a numeric value. 

You need to add validation to the input field. 

Which HTML should you use? 

A. <input id="txtValue" type-"text" pattern="/#" /> 

B. <input id="txtValue" type="number" /> 

C. <input id="txtVa!ue" type="integer" /> 

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

Answer:

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

<div> 

Logo:<br> 

<div id="logo"> 

</div> 

</div> 

You need to move the logo element lower on the page by five pixels. 

Which lines of code should you use? (Each correct answer presents part of the solution. Choose two.) 

A. document.getElementById("logo") .style.position = "relative"; 

B. document.getElementByld("logo").Style.top = "5px"; 

C. document.getElementById("logo").style.top = "-5px"; 

D. document.getElementById("logo").style.position = "absolute"; 

Answer: AB 

Q6. You are developing a JavaScript library. 

You have the following requirements: 

Custom exceptions must include an error message and custom error number. These exceptions must be thrown when data validation errors occur. Developers must call the library to easily catch the exception and identify the problem. 

You develop the following code. (Line numbers are included for reference only.) 

You need to complete the code to meet the requirements. 

Which line of code should you insert at line 09? 

A. throw new Validatior.Exception (123, "Day of week must be les3 than 7"); 

B. return new ValidationException(123, "Day of week must be less than 7"); 

C. throw ValidationException(123, "Day of week must be less than 7"); 

D. catch ValidationException(123, "Day of week: must be less than 7"); 

Answer: A

Q7. You have a webpage that includes the following markup and code: 

You need to troubleshoot the code by clicking the Submit button. 

Which value will be displayed? 

A. 10 

B. 20 

C. Undefined 

D. Runtime error 

Answer: A

Q8. You are developing a web page that has a group of HI and H2 elements. The page also includes a CSS class named underlineMe. 

You have the following requirements: 

The font color of all H1 and H2 elements must be changed to red. 

The CSS class underlineMe must be applied to all H1 and H2 elements. 

You need to update the web page to meet the requirements. Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

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

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? 

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

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

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

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

Answer:

Q10. You are modifying a website. The body of the page will be divided into two sections: . A content section will contain blog posts and comments. . An area on the right-hand side will contain advertisements. The page is defined by the following HTML. 

The site must conform to HTML5 standards and must use HTML5 semantic tags. You need to ensure that the advertisements are on the rightmost section of the page. Which tag should you use? 

A. <aside> 

B. <div> 

C. <article> 

D. <footer> 

Answer: