Q1. Your company uses a third-party component that generates HTML for a website. The third-party component creates DIV elements that display a yellow background.
The third-party component uses inline styles in the DIV elements that are inconsistent with your corporate standards. You must override the DIV elements in the style sheet with the corporate styles.
You need to ensure that the website meets corporate standards.
Which style should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Q2. 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
Q3. You develop an HTML5 application. The application uses an image that is returned from an HTTP POST request.
You develop the following code: (Line numbers are included for reference only.)
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Q4. You are creating a page that contains detailed employee information for a company portal. The page uses a jQuery library. The page contains a hidden button named btnEdit that is defined by the following code.
<button id="btnEdit" style="display: none;n>Edit</button>
The button is not displayed by default.
The button must be displayed only if the user is logged on.
You need to add code to the document.ready() function to meet the requirements for the button.
Which line of code should you use?
A. $ (‘#btnEdit’).appear ();
B. $ (‘#btnEdit’).visible = true;
C. $ (‘#btnEdit’).show();
D. $ (‘#btnEdit’).Visible();
Answer: A
Q5. You are developing a web form that includes the following code.
When a user selects the check box, an input text box must be added to the page dynamically.
You need to ensure that the text box is added.
Which function should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Q6. You are developing a customer web form that includes the following HTML.
<input id="txtValue"/>
You need to change the HTML markup so that customers can enter only a valid three-letter country code.
Which HTML should you use?
A. <input id="txtValue" type="code" />
B. <input id="txtValue" type="text" pattern=" [A-Za-z] {3}" />
C. <input id="txtValue" type="text" required="required"/>
D. <input id="txtValue" type="country" />
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 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. <span>
B. <nav>
C. <cable>
D. <section>
Answer: D
Q9. You develop an HTML application that is located at www.adventure-works.com.
The application must load JSON data from www.fabrikam.com.
You need to choose an approach for loading the data.
What should you do?
A. Design a REST URI scheme with multiple domains.
B. Configure Cross-Origin Resource Sharing (CORS) on the servers.
C. Load the data by using WebSockets.
D. Use the jQuery getJSON method.
Answer: B
Q10. 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