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.)
Which two code segments should you use?
You are creating a class named Sedan that must inherit from the Car class. The Sedan class must modifythe
inherited fourDoor () method.
The Car class is defined as follows.
Future instances of Sedan must be created with the overridden method. You need to write the code to
implement the Sedan class.
Which two code segments should you use? (Each correct answer presents part of the solution. Choose two.)
Which tag should you use?
You are modifying a blog site to improve search engine readability.
You need to group relevant page content together tomaximize search engine readability.
Which tag should you use?
Which code segment should you use?
You are developing application web form by using HTML5 and JavaScript.
You need to prevent users from submitting form datamore than once.
Which code segment should you use?
Which HTML5 element should you use?
You are developing an HTML5 web application for a surveyor company that displays topographic images.
The application must:
Display the topographic images at different zoom levels without loss of detail
Print the topographic images without loss of detail
Work from only one source file for each topographicimage
You need to ensure that the topographic images display according to the requirements.
Which HTML5 element should you use?
Which tag should you use?
You are modifying a website.
The body of the page will be divided into two sections:
A content section will contain blog posts and comments.
An area on the right-hand side will contain advertisements.
The page is defined by the following HTML.
The site must conform to HTML5 standards and must use HTML5 semantic tags.
You need to ensure that the advertisements are on the rightmost section of the page.
Which tag should you use?
Which expression should you insert into each function?
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 regular expressionstatement to the correct location. Each regular expression
statement may be used once, more than once, or not at all. You may need to drag the split bar between panes
or scroll to view content.)