Want to know Actualtests 70-480 Exam practice test features? Want to lear more about Microsoft Programming in HTML5 with JavaScript and CSS3 certification experience? Study Virtual Microsoft 70-480 answers to Far out 70-480 questions at Actualtests. Gat a success with an absolute guarantee to pass Microsoft 70-480 (Programming in HTML5 with JavaScript and CSS3) test on your first attempt.
Q71. You are troubleshooting a web page that includes the following code segment.
You need to evaluate the value of the variable x.
What will be displayed in the user interface?
A. 0
B. 1
C. 2
D. An error
Answer: A
Q72. You are developing a web page that includes the following HTML. <span id="myTextSpan" class="myStyle">Hello, World!</Span> You need to use inline CSS styling to format the text with Arial font. Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Q73. 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
Q74. 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
Q75. You are developing a website that helps users locate theaters in their area from a browser. You created a function named findTheaters ().
The function must:
. Get the current latitude and longitude of the user's device
. Pass the user's location to findTheaters()
The user needs to access the geolocation information from the browser before searching for theaters.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Q76. An HTML page contains no embedded JavaScript or CSS code. The body of the page contains only the following line of code.
<p id="test">test</p> A CSS style sheet must be applied dynamically. The style must visibly change the appearance of the paragraph on the page.
You need to apply a style the paragraph.
Which line of code should you use?
A. document.getElementById("test").style.border = "0";
B. document.getElementById("test").style.position = "static";
C. document.getElementById ("test").style.padding = "15px";
D. document.getElementById("test").style.top = "5px";
Answer: A
Q77. You are developing a web application that consumes services from a third-party application. A web worker processes the third-party application requests in the background. A page in the application instantiates the web worker process.
You need to establish two-way communications between the web worker process and the page.
Which two actions will achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A. From the web worker, use the onconnect event handler of the main page to capture events.
B. From the main page, use the onmessage event handler of the web worker to capture events.
C. From the web worker, use the onmessage event handler of the main page to capture events.
D. From the main page, use the onconnect event handler of the web worker to capture events.
Answer: BC
Q78. You implement an application by using HTML5 and JavaScript. You create a webpage that contains the following HTML:
The application must place a border on only the first UL element that is contained in the DIV element.
You need to update the webpage.
What should you do?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q79. 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: B
Q80. You are developing a web application that can function when users are not connected to the Internet.
You need to check the Internet connectivity status of a user's browser.
Which method should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A