What should you use?
You are developing a customer contact form that will be displayed on a page of a company's website. The page collects information about the customer. If a customer enters a value before submitting the form, it must be a valid email address. You need to ensure that the data validation...
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...
Which code segment should you use?
You are creating a JavaScript function to display the current version of a web application You declare a 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? A . Option...
Which three statements should you implement in sequence?
DRAG DROP You are developing an application that reads information from a file. The application must: • Execute a block of code if there is an error accessing the file • Execute a second block of code whether or not there is an error accessing the file You need to...
Which code segment should you use?
You are developing an application that uses a third-party JavaScript library named doWork(). The library occasionally throws an "object is null or undefined" error with an error code of-2146823281. The application must: • Extract and handle the exceptions thrown by doWork() • Continue normal program execution if other exceptions occur...
What should you do?
HOTSPOT You are developing a web application that retrieves data from a web service. The data being retrieved is a custom binary datatype named bint. The data can also be represented in XML. Two existing methods named parseXml() and parseBint() are defined on the page. The application must: • Retrieve...
In which order will the five style sheets be applied?
DRAG DROP You are creating an application by using HTML5 and CSS3. The styles for the pages are derived from five style sheets. The styles are not being applied correctly to the pages in the application. You need to determine the order in which the style sheets will be applied...
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? A . Option AB . Option BC . Option CD . Option DView...
How should you build the code segment?
HOTSPOT You are creating a function by using JavaScript. The function accepts an object as the parameter and returns a string that identifies the data type of the object. You have the following requirements: • The function must return "Number" if the object is a number. • The function must...
How should you write the code?
DRAG DROP You are developing an online shopping application that accepts credit cards for payment. If the credit card number is invalid, the application must: Generate an error Assign "200" to the error number Assign "Invalid" to the error description You need to write the code that meets the requirements....