Which value should you use?
You are developing an HTML5 page.
The page includes the following code.
The inner paragraph must be exactly 15 pixels from the top left corner of the outer paragraph.
You set the left style for the inner paragraph to the appropriate value.
You need to set the position property of the inner paragraph.
Which value should you use?
Which HTML should you use?
You are developing a customer web form that includes the following HTML input field.
<input id=”txtValue”/>
If a customer enters a value in the input field, then it must be a numeric value.
You need to add validation to the input field. Which HTML should you use?
Which HTML should you use?
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?
Which code segment should you use?
You are developing a web form that includes the following HTML.
<input id=”txtValue” type=”text” />
You need to ensure that a value is entered into txtValue before the form is submitted.
Which code segment should you use?
Which line of code should you use?
You are developing a web page that consumes a Windows Communication Foundation (WCF) service. The
page includes the following code segment.
var xhr = new XMLHttpRequest() ;
The page uses the xhrHandler() method to listen forchanges to the request status of the WCF service calls.
It uses the xmlToJavaScript() method to convert theresponse from the WCF service to a JavaScript object.
The xhrHandlerQ method must be called automaticallyeach time the request status changes.
You need to add the event handler to the request object.
Which line of code should you use?
Which code segment should you use?
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 avalid country code consisting of three
English alphabet characters.
Which code segment should you use?
Which code segment should you use?
You are developing an application that consumes an external web service that returns the latest stock rate.
The application has two methods:
The getResults() method makes an AJAX web service request
The ShowRate() method displays the stock rate from the web service response
You need to ensure that the ShowRate() method always displays the latest stock rate.
Which code segment should you use?
Which code segment should you use?
You are creating a JavaScript function to display the current version of a web application You declarea button
as follows.
<input type=”button” id=”About” value=”About” />
You need to create an event handler for the button by using an anonymous function.
Which code segment should you use?
Which line of code should you use?
You are testing the value of the following variablein JavaScript.
var height = “300”;
A block of code must execute if the following conditions are true:
The height variable is set to 300
The height variable is of type string
You need to implement the code to run the test.
Which line of code should you use?
Which three types of objects should you use?
You are developing a web application that uses web workers to process images extracted from an HTML5
CANVAS object on a web page.
You need to pass messages between the web workers and the web page.
Which three types of objects should you use? (Each correct answer presents a complete solution. Choose
three.)