PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which two code segments should you use?

You create the following JavaScript code:

You have the following requirements:
You must invoke a function that displays the vehicle information within the following HTML
element: <div id=”display”x/div>
The output of the function must appear on the webpage as follows:
Vehicle Color is silver
Stay safe!
Vehicle TransmissionType is manual
Big machine!
You need to invoke the JavaScript function to display the required output in the HTML
element.
Which two code segments should you use? (Each correct answer presents a complete
solution. Choose two.)

Which line of code should you insert at line 04?

You are developing an application that processes order information. Thousands of orders
are processed daily. The application includes the following code segment. (Line numbers are
included for reference only.)

The application must:
Display the number of orders processed and the number of orders remaining
Update the display for every 25th record processed
You need to develop the application to meet these requirements.
Which line of code should you insert at line 04?

You need to modify the webpage to invoke the JavaScript function named someEvent()

You troubleshoot a webpage that contains the following HTML markup: (Line numbers are
included for reference only.)

The webpage also contains the following JavaScript function named someEvent() that is
declared in the HEAD section of the HTML:
Function someEvent() {
Alert(‘someEvent fired!’);
}
The JavaScript function named someEvent() must run only when the user clicks the DIV
element, not the INPUT elements.
You need to modify the webpage to invoke the JavaScript function named someEvent().
What should you do? (Each correct answer presents a complete solution. Choose two.)

Which markup should you use?

You develop a webpage by using HTML5.
The user interface of the webpage must show a gray-lined box that contains the label Enter
your information:. Inside the box are two labels and two input boxes. The first input box must

be labeled Name:. The second input box must be labeled Email:. Below the box is a Submit
button.
The user interface must look like the following;

You need to create the user interface.
Which markup should you use?

You need to ensure that the data validation requirement is met

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 requirement is met.
What should you use?
1. <input name=”email” type=”input” required=”required”/>
2. <input name=email” type=”url” required=”email”/>
3. <input name=”email” class” email”/>
4. <input name=”email” type=”email”/>