PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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:

How should you complete the code?

DRAG DROP
You need to write a jQuery function to consume a file named Orders.xml.
You write the following code.

How should you complete the code? To answer, drag the appropriate code elements to the correct targets in
the answer area. Each code element 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.
Select and Place:

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:

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


Page 395 of 6,830« First...102030...393394395396397...400410420...Last »