Ensurepass QUESTION 51 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 for changes to the request status of the WCF service calls. It uses the xmlToJavaScript() method to convert the response from the WCF service to a JavaScript object. The xhrHandlerQ method must be called automatically each time the request status changes. Read more [...]
Ensurepass QUESTION 41 You are developing a web page that has a group of H1 and H2 elements. The page also includes a CSS class named underlineMe. You have the following requirements. · The font color of all H1 and H2 elements must be changed to red. · The CSS class underlineMe must be applied to all H1 and H2 elements. You need to update the web page to meet the requirements. Which code segment should you use? A. B. C. D. Answer: D QUESTION 42 HOTSPOT You are developing Read more [...]
Ensurepass QUESTION 31 You are developing an HTML5 page that includes several paragraph elements. You have the following requirements: · Add a drop shadow that is one inch below the text in the paragraph · Set the radius of the drop shadow to five pixels You need to style the paragraphs to meet the requirements. Which CSS style should you use? A. text-shadow: 72pt 0pt 5pt B. text-shadow: 5px lin 0px; C. text-shadow: 72pt 5em 0px D. text-shadow:72pt 0em 5px; Answer: D QUESTION Read more [...]
Ensurepass QUESTION 21 HOTSPOT You are creating a web worker for an HTML5 application. The following tasks must be performed from within the web worker: · Register an event listener for the web worker · Start and stop the web worker You need to define a function that performs the required tasks. Which code segment should you use? (To answer, select the appropriate option from the drop-down list in the answer area.) A. self.postMessage('Worker : ', + data); B. self.addEventListener('message', Read more [...]
EnsurepassQUESTION 11 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. B. C. D. Answer: A QUESTION Read more [...]
EnsurepassQUESTION 1 You are validating user input by using JavaScript and regular expressions. A group of predefined regular expressions will validate two input fields: · An email address in a function named validateEmail · A nine-digit number that allows optional hyphens after the second and fifth character in a function named validateSSN You need to use the correct expression to validate the input. Which expression should you insert into each function? (To answer, drag the appropriate Read more [...]