Which expression should you insert into each function?
HOTSPOT
You are validating user input by using JavaScript and regular expressions.
A group of pre-defined regular expressions validate two input fields:An email address in a function named validateEmail. The email address must use two-part domains with
two to four characters in the second part of the domain name.
A nine-digit number that allows optional hyphens after the third and fifth character in a function named
validateID (for example, 555555555 or 555-55-5555)
You need to use the correct expression to validate the input.
Which expression should you insert into each function? To answer, select the appropriate options from the
drop-down lists in the answer area.
Hot Area:
Which HTML element should you add?
You are developing an HTML5 web form to collect feedback information from site visitors.
The web form must display an INPUT element that meets the following requirements:
Allow numeric values between 1 and 10.Default to the value of 5.
Display as a slider control on the page.
You need to add the INPUT element to the form.
Which HTML element should you add?
How should you develop the form?
HOTSPOT
You are developing a form that captures a user’s email address by using HTML5 and jQuery.The form must capture the form elements as a string.
You need to implement this functionality.
How should you develop the form? (To answer, select the appropriate options from the drop-down lists in the
answer area.)
Hot Area:
Which three actions should you perform in sequence?
DRAG DROP
You create an HTML5 webpage. You have the following HTML markup:
You also have the following JavaScript code segment:
var jsonFruit = { “apples” : “12”, “bananas” : “8”, “watermelon” : “3” }
You need to add additional rows to the fruitTable element by processing the jsonFruit values in the order listed.
Which three actions should you perform in sequence? (Develop the solution by selecting the required code
segments and arranging them in the correct order.)
Select and Place:
You need to ensure that the alert displays as shown: …
Which two techniques should you use?
You are developing an HTML5 web application that provides a discussion forum for users. When a user
registers to access the application, the user enters an email address.
Users can enter data that can result in cross-site scripting (XSS) attacks.
You need to ensure that email input is as secure as possible.
Which two techniques should you use? (Each correct answer presents a complete solution. Choose two.)
You need to use the least amount of development effort …
You are creating a rotating image of a company logo.
The logo must spin on a horizontal axis and on a vertical axis.
You need to use the least amount of development effort to meet the requirement.
What should you do?
You need to provide real-time updates to the messages t…
You develop an HTML5 chat application.
You need to provide real-time updates to the messages that users post in the chat application.
What should you do?
What will be displayed in the user interface?
Which CSS style should you apply?
You are developing an application that retrieves a stock rate from an external web service. A web page displays
a simple rotating animation to indicate whether the stock rate is increased or decreased.
The default image, as shown in the following graphic, indicates unchanged or neutral.
The arrow must point down if the stock rate is decreased, as shown in the following graphic.
You need to ensure that the arrow points down when the stock rate decreases.
Which CSS style should you apply?