PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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
You need to implement the requirements.
Which code segment should you use?

Which two actions will achieve this goal?

You are developing a web application that consumes services from a third-party application.
A web worker processes the third-party application requests in the background. A page in
the application instantiates the web worker process.
You need to establish two-way communications between the web worker process and the
page.
Which two actions will achieve this goal? (Each correct answer presents a complete solution.
Choose two.)

How should you write the code?

DRAG DROP
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 should you write the code? (To answer, drag the appropriate code segment or
segments to the correct location in the answer area. Each code segment 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.)

Which code segment should you use?

You are creating a web form that users will use to enter their personal information. The form
includes the following HTML.

You have the following requirements:
When a user enters an input box, the cell on the right must turn green.
When a user leaves an input box, the cell on the right must turn white.
You need to create the web form to meet these requirements.
Which code segment should you use?