PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

How should you complete the relevant code?

DRAG DROP
You are developing a shared library to format information. The library contains a method named _private.
The _private method must never be called directly from outside of the shared library.
You need to implement an API for the shared library.
How should you complete the relevant code? (Develop the solution by selecting the required code
segments and arranging them in the correct order. You may not need all of the code segments.)

How should you complete the relevant code?

DRAG DROP
You are implementing a web worker by using JavaScript and HTML5. The web worker processes a
long-running loop and returns the result to a webpage.
The web worker is defined on the webpage as follows:

You have the following requirements:
Evaluate the message value in the web worker.

Process the loop based on the iterations value that is passed from the webpage.
Return a value back to the webpage from the web worker.
You need to implement the web worker.
How should you complete the relevant code? (To answer, drag the appropriate code segment to the
correct location or locations in the answer area. Use only code segments that apply.)

Which five actions should you perform in sequence?

DRAG DROP
You create a webpage that includes the following HTML markup: (Line numbers are included for reference only.)

You need to ensure that a form cannot be submitted unless the INPUT element contains the word OK.
Which five actions should you perform in sequence? (To answer, move the appropriate actions from
the list of actions to the answer area and arrange them in the correct order.)

Which line of code should you add at line 03?

You are creating a web page that contains a canvas with text.
The page contains the following JavaScript code. (Line numbers are included for reference only.)

The text on the canvas must rotate 90 degrees when a user clicks a button on the page.
You need to ensure that the text rotates when the user clicks the button.
Which line of code should you add at line 03?

Which two code segments should you add to the webpage?

You develop an HTML5 webpage that contains the following HTML markup:

You have the following requirements:
Retrieve the content for any OPTION elements when the value of the selected attribute equals
selected.
Add the content to a comma separated string.
You need to retrieve the required data.
Which two code segments should you add to the webpage? (Each correct answer presents a
complete solution. Choose two.)