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...

August 29, 2018 No Comments READ MORE +

How should you build the code segment?

HOTSPOT An HTML page has a canvas element. You need to draw a red rectangle on the canvas element dynamically. The rectangle should resemble the following graphic. How should you build the code segment? (To answer, select the appropriate options from the drop-down lists in the answer area.) View AnswerAnswer:...

August 29, 2018 No Comments READ MORE +

Which code segment should you use?

You are developing a customer web form that includes the following HTML. <input id="txtValue" type="text" /> A customer must enter a valid age in the text box prior to submitting the form. You need to add validation to the control. Which code segment should you use? A . Option AB...

August 29, 2018 No Comments READ MORE +

Which CSS3 property should you use?

You are developing a web page that will be divided into three vertical sections. The main content of the site will be placed in the center section. The two outer sections will contain advertisements. You have the following requirements: • The main content section must be set to two times...

August 29, 2018 No Comments READ MORE +

Which two code segments can you use?

You are creating a JavaScript function that displays the name of a web application. You declare the following button element. <input type="button" id= "About" value="About" /> When a user clicks the button, a JavaScript function named About must be called. You need to create an event handler that calls the...

August 29, 2018 No Comments READ MORE +

Which JavaScript code segment should you use?

You are developing a customer web form that includes the following HTML. <label id="txtValue"X/label> Information from the web form is submitted to a web service. The web service returns the following JSON object. { "Confirmation": "1234", "FirstName": "John" } You need to display the Confirmation number from the JSON response...

August 29, 2018 No Comments READ MORE +

How should you write the code?

HOTSPOT 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. How...

August 27, 2018 No Comments READ MORE +

Which values are valid for the text-transform property?

You are developing an HTML5 web application and are styling text. You need to use the text-transform CSS property. Which values are valid for the text-transform property?A . hiddenB . blinkC . capitalizeD . line-throughView AnswerAnswer: C Explanation: CSS Syntax text-transform: none|capitalize|uppercase|lowercase|initial|inherit; Example Transform text in different elements: h1 {text-transform:uppercase;}...

August 26, 2018 No Comments READ MORE +

How should you build the code segment?

DRAG DROP 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...

August 23, 2018 No Comments READ MORE +

With which container tags should you wrap the existing markup?

You are modifying an existing web page. The page is being optimized for accessibility. The current page contains the following HTML. Standards-compliant screen readers must be able to identify the links contained within the navigation structure automatically. You need to create the navigation link structure in the page. With which...

August 23, 2018 No Comments READ MORE +