It is more faster and easier to pass the Microsoft exam 70 480 pdf exam by using Printable Microsoft Programming in HTML5 with JavaScript and CSS3 questuins and answers. Immediate access to the Improve 70 480 exam questions Exam and find the same core area 70 480 exam questions questions with professionally verified answers, then PASS your exam with a high score now.
Q1. 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
Q2. You are developing a page that includes text and an illustration. The web page resembles the following image.
You have the following requirements:
The illustration must be in the center of the page.
The text must flow around the left, right, top, and bottom of the illustration.
You need to ensure that the layout of the web page meets the requirements.
Which line of code should you use?
A. -ms-wrap-side: both;
B. -ms-wrap-side: clear;
C. -ms-wrap-side: maximum;
D. -ms-wrap-side: auto;
Answer: A
Q3. You develop an application to host user-generated HTML and JavaScript content.
A common error handler in your application must process all unhandled errors.
You need to implement global error handling for the application.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Q4. 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
Q5. You develop an HTML5 webpage. You have the following HTML markup:
You need to change the background color for all of the elements whose name attribute ends with the word name.
Which code segment should you add to the webpage?
A. $ ('input [name!="name"]’) .ess ({ 'background-color' : ' #E0ECF8'}) ;
B. ${'input [name~="name"] ') .ess ({ 'background-color' : ' #E0ECF8' }) ;
C. ${'input[name*="name"]').ess({'background=color': #E0ECF8'});
D. $( 'input [name$="name"] ') .ess ({ 'background-color' : '#E0ECF8'});
Answer: D
Q6. You develop an HTML5 webpage. You have the following HTML markup:
<input type="text" id="username" />
You need to prevent users from entering specific characters into the username field.
What should you do?
A. Using the keyup event, add an anonymous function that returns true when a specific character keycode value is determined.
B. Using the change event, add an anonymous function that returns true when a specific character keycode value is determined.
C. Using the keydown event, add an anonymous function that returns false when a specific character keycode value is determined.
D. Using the change event, add an anonymous function that returns false when a specific character keycode value is determined.
Answer: B
Q7. You develop a webpage with a standard input control by using HTML5.
The input control must display the text Enter your given name, as shown below:
When a user selects the input control, the text must disappear.
You need to create the input control.
Which input control should you use?
A. <input name="GivenName" value=" Enter your given name" />
B. <input name ="GivenName" default=" Enter your given name" />
C. <input name="GivenName" text=" Enter your given name" />
D. <input name="GivenName" placeholder=" Enter your given name" />
Answer: D
Q8. You develop a webpage by using HTML5. You create the following markup:
<input type "url" name= "website" required="required" />
You need to ensure that the value that the user enters contains a secure URL.
What should you do?
A. Add the following attribute to the input tag: value="https://v
B. Add the following attribute to the input tag: pattern="https://.+"
C. Add the following attribute to the input tag: value="ssl"
D. Add the following attribute to the input tag: itemtype="https"
Answer: B
Q9. You are developing an HTML5 page named main.html. The JavaScript code for the main page is located in a file named myApp.js.
You need to create a web worker and instantiate it from main.html.
Where should you place the web worker code?
A. In the myApp.js file
B. In the main.html file
C. In a separate .js (JavaScript) file
D. In a separate executable file
Answer: C
Q10. You are developing an HTML5 web application that displays customer mailing address information.
The application loads addresses from a web service by using AJAX. The following code defines a Customer object and loads address data.
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C