70-480 Premium Bundle

70-480 Premium Bundle

Programming in HTML5 with JavaScript and CSS3 Certification Exam

4.5 
(12135 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 23, 2024Last update

Microsoft 70-480 Free Practice Questions

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

Q2. You are developing an HTML5 web application that displays the current temperature whenever a button is clicked. The following code provides this functionality. 

When the temperature is loaded, the status property on the loader instance does not change. 

You need to ensure that the status property on the loader instance is updated when the temperature is loaded. 

Which code segment should you use to replace the Loader function? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q3. You are creating a JavaScript function to display the current version of a web application 

You declare a button as follows. 

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

You need to create an event handler for the button by using an anonymous function. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q4. You are developing an HTML5 page. The page includes the following code. 

The inner paragraph must be exactly 15 pixels from the top left corner of the outer paragraph. You set the left style for the inner paragraph to the appropriate value. 

You need to set the position property of the inner paragraph. 

Which value should you use? 

A. absolute 

B. static 

C. fixed 

D. relative 

Answer:

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

Q6. You are modifying a blog site to improve search engine readability. 

You need to group relevant page content together to maximize search engine readability. 

Which tag should you use? 

A. <article> 

B. <span> 

C. <tbody> 

D. <cd> 

Answer:

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

Q8. You are building a web page for a newspaper publisher. 

. You have the following requirements: 

. The web page should split the content into columns that are at least 100 pixels wide. 

. The number of columns displayed must be set by the browser. 

You need to implement the correct CSS properties. 

Which line of code should you use? 

A. <div id="outer" style="width: 100px; column-fill: balance;">...</div> 

B. <div id="outer" style="width: 100px; column-gap: 10px;">...</div> 

C. <div id="outer" style="column-width: 100px; ">. . .</div> 

D. <div id="outer" style="width: 100px; columns: 100px 3">...</div> 

Answer: C

Q9. You are developing a web page by using HTML5. 

You have the following requirements: 

. An H1 element must be placed at the top left corner of the page. 

. The size and location of the H1 element must not change if additional elements are added to the page. 

You need to position the H1 element on the page. 

Which CS53 style should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: A

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 

Q13. You are developing a web page that performs CPU-intensive calculations. A web worker processes these calculations on a separate background thread. The process is instantiated from the web page. 

You need to stop the web worker process after the calculations are completed. 

Which two actions can you perform to achieve this goal? (Each correct answer presents a complete solution. Choose two.) 

A. From the web page, call the close() method. 

B. From the web worker process, call the terminate() method. 

C. From the web page, call the terminate() method. 

D. From the web worker process, call the close() method. 

Answer: CD

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

Q15. 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:

START 70-480 EXAM