Q1. 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
Q2. You develop a web application by using jQuery. You develop the following jQuery code: (Line numbers are included for reference only.)
The web application exposes a RESTful web API that has an endpoint of/product/create.
You need to create a new product by using AJAX.
Which code segment should you insert at line 05?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q3. You are creating a web page that contains a canvas with text.
The page contains the following JavaScript code. (Line numbers are included for reference only.)
The text on the canvas must rotate 90 degrees when a user clicks a button on the page.
You need to ensure that the text rotates when the user clicks the button.
Which line of code should you add at line 03?
A. context.transform(90);
B. context.content.getRotation(90);
C. context.rotate(90);
D. context.content.rotate (90);
Answer: C
Q4. You are developing an HTML5 web application that displays stock information.
The application loads information from a web service by using AJAX.
The following code defines a Stock object and loads stock data.
You need to implement the loadStock function. Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Q5. You are developing an HTML5 web form to collect feedback information from site visitors.
The web form must display an INPUT element that meets the following requirements:
Allow numeric values between 1 and 10.
Default to the value of 5.
Display as a slider control on the page.
You need to add the INPUT element to the form.
Which HTML element should you add?
A. Rating (Between 1 and 10): <input type="number" name="rating" min ="1" max-"10">
B. Rating (Between 1 and 10): <input type="number" name="rating" min="1" max="10" default="5">
C. Rating (Between 1 and 10): <input type="range" name="rating" min="0" max="10" default"="5">
D. Rating (Between 1 and 10): <input type="range" name="rating" min="10" max="10" value="5">
Answer: D
Q6. 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
Q7. You develop a webpage by using HTML5.
The user interface of the webpage must show a gray-lined box that contains the label Enter your information:. Inside the box are two labels and two input boxes. The first input box must be labeled Name:. The second input box must be labeled Email:.
Below the box is a Submit button.
The user interface must look like the following; You need to create the user interface. Which markup should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Q8. You are implementing an application by using HTML5 and JavaScript. A web page contains the following HTML table.
The application must:
. Identify all rows in the table body that have a class attribute of selected
. Exclude the last selected row in the table
You need to implement the web page according to the requirements.
Which CSS selector should you use?
A. tr:not(tr:last-child).selected < #dataTable
B. #dataTable > tr.selected:not(tr:last-child)
C. #dataTable tbody tr.selected:not(tr:last-child)
D. #dataTable tr.selected:not(tr:last-child)
Answer: C
Q9. 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
Q10. 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: A