Exam Code: 70 480 certification (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Programming in HTML5 with JavaScript and CSS3
Certification Provider: Microsoft
Free Today! Guaranteed Training- Pass 70 480 pdf Exam.
Q21. You develop an HTML5 chat application.
You need to provide real-time updates to the messages that users post in the chat application.
What should you do?
A. Use get o to obtain data updates.
B. Use a RESTful web service.
C. Use WebSockets.
D. Use ajaxo to obtain data updates.
Answer: C
Q22. 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
Q23. 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 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 Q25. 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: C Q26. You develop an interactive scalable vector graphic (SVG) application. You write the following code (Line numbers are included for reference only.): You need to increase the size of the circle by 50 percent. Which code segment should you insert at line 02? A. Option A B. Option B C. Option C D. Option D Answer: B Q27. 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 Q28. 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 Q29. You are troubleshooting an application. Users report that the UI is slow to respond. You need to improve UI responsiveness by moving application tasks to web workers. Which two tasks can you move to achieve this goal? (Each correct answer presents a complete solution. Choose two.) A. A function that loops through the Document Object Model to update the style of page elements B. A long-running calculation that requires looping through an array C. A function that performs graphic-intensive animation D. A function that stores large amounts of data to local storage Answer: BC Q30. You are styling a box object on a page by using CSS3. You need to set the transparency of the object to 50%. Which two CSS3 styles will achieve the goal? (Each correct answer presents a complete solution. Choose two.) A. Option A B. Option B C. Option C D. Option D Answer: BC