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 creating a JavaScript object that represents a customer. 

You need to extend the Customer object by adding the GetCommission method. 

You need to ensure that all future instances of the Customer object implement the GetCommission method. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: D

Q2. You are creating an HTML5 application that allows users to play video on a page by using the VIDEO element. 

You need to enable the user to start, stop, and pause the video. 

Which line of code should you add to the page? 

A. <video id= "myVideo" height="320" width="400" src="myVideo.vtt" contextmenu="pauseplay"> </video> 

B. <video id="myVideon heigh"="320" width="400" src="myVideo.vtt" controls> </video> 

C. <video _d="myVideon height="320" width="400" src="myVideo.vtt" autoplay> </video> 

D. <video id="myVideo" height="320" width="400" src="myVideo.vtt" contextinenu="Startstopn> </video> 

Answer: B

Q3. You are developing an application that processes order information. Thousands of orders are processed daily. The application includes the following code segment. (Line numbers are included for reference only.) 

The application must: 

. Display the number of orders processed and the number of orders remaining . Update the display for every 25th record processed 

You need to develop the application to meet these requirements. 

Which line of code should you insert at line 04? 

A. if (!(counter % 25)) 

B. if (counter == 25) 

C. if (counter >> 25 == 0) 

D. if (counter >> 25 == 0) 

Answer: A

Q4. You are creating a blog site by using HTML5 and JavaScript. An inline frame enables users to post comments. It is possible for users to inject malicious scripts into their comments. 

You need to minimize the ability for malicious scripts to execute on the site. 

Which line of code should you use? 

A. <iframe sandbox src="frame1.htmlnX/iframe> 

B. <iframe seamless="allowscripts" src="frame1.html"<>/iframe> 

C. <iframe seamless src="frame1.html"></iframe> 

D. <iframe sandbox="allowscripts" src"frame1.html"x/iframe> 

Answer: A

Q5. You develop a web application by using jQuery. You develop the following jQuery code: (Line numbers are included for reference only.) 

The web application exposes a RESTful web API that has an endpoint of/product/create. 

You need to create a new product by using AJAX. 

Which code segment should you insert at line 05? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q6. You are developing a web page by using HTML5 and C5S3. The page includes a <div> tag with the ID set to validate. 

When the page is rendered, the contents of the <div> tag appear on a line separate from the content above and below it. The rendered page resembles the following graphic. 

You need to ensure that the page is rendered to meet the requirement. 

Which line of code should you use? 

A. document.getElementById("validate").style.display = "inline"; 

B. document.getElementById("validate").style.margin = "0"; 

C. document.getElementById("validate").style.padding = "0"; 

D. document.getElementSyId("validate").style.display = "block"; 

Answer:

Q7. You develop an HTML5 webpage that contains the following HTML markup: 

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

Users must enter a valid integer value into the text box. 

You need to validate the data type that is received from the input element. 

Which two code segments should you include on the webpage? (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: AB

Q8. You develop an HTML5 webpage with custom CSS. You have the following HTML markup: 

<div class="new" Item">...</div> 

You have the following requirements: 

. In addition to your CSS, you must use a corporate branded stylesheet named corporate.ess. 

. The corporate.ess file contains the style rule that must be used for .newsItem. 

. You must use the corporate.ess file to ensure that the webpage changes when the brand changes. 

. You must add additional style rules to the webpage. 

. You cannot modify the corporate.ess file. 

You need to apply the appropriate CSS rules to meet the requirements. 

What should you do? 

A. Add a CSS class named .newsItemUpdates to the webpage, add only the new styles to this class, and update the class attribute of the HTML markup: 

<div class=nnewsltem newsItemUpdates">..,</div> 

B. Update the corporate.ess file to include! important for each rule for the .newsItem. class, and add the new CSS rules to the webpage by using the CSS class .newsItem. 

C. Add a CSS class named .newsitemUpdates to the webpage, add the new styles to this class, and update the HTML markup to replace the .newsItem class with this new class: 

<div class*"newsItemOpdates">...</div> 

D. Add the new CSS rules to the webpage by using the CSS class .newsItem, and add! important to each rule. 

Answer: D

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

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

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

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

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

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

Answer: BD 

Q10. You are creating a class named Sedan that must inherit from the Car class. The Sedan class must modify the inherited fourDoor () method. The Car class is defined as follows. 

Future instances of Sedan must be created with the overridden method. 

You need to write the code to implement the Sedan class. 

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

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: BC