Ensurepass

QUESTION 31

HOTSPOT

You develop an HTML messaging application that allows users to send messages. The messages can have an optional file attachment that is identified by a filename. You use the following function to send a message:

 

clip_image001

 

You need to send a message with a file attachment. How should you complete the relevant code?

 

To answer, select the appropriate option from each drop-down list in the answer area.

 

Hot Area:

clip_image003

 

Correct Answer:

clip_image005

 

 

QUESTION 32

DRAG DROP

You develop an HTML application that calls a web service to retrieve JSON data. The web service contains one method named GetFullName that returns an Object named data. The data object contains two properties named GivenName and Surname. You need to load data from the web service to the webpage. How should you complete the relevant code?

 

To answer, drag the appropriate code segment or code segments to the correct location or locations in the answer area. Use only code segments that apply.

 

Select and Place:

clip_image007

 

Correct Answer:

clip_image009

 

 

QUESTION 33

DRAG DROP

A company asks you to create a function that displays loan amounts to their customers. You must create the function by using JavaScript to meet the following requirements:

 

Ÿ   Display three different loan amounts to each customer.

Ÿ   Display loan amounts in order starting with the greatest amount and ending with the least amount.

 

You need to implement the function. How should you complete the relevant code?

 

To answer, drag the appropriate command or commands to the correct location or locations in the answer area. Use only commands that apply.

 

Select and Place:

clip_image011

 

Correct Answer:

clip_image013

 

 

QUESTION 34

HOTSPOT

You develop an HTML5 application that allows images to be dragged and dropped within a webpage. The webpage contains a DIV element and four IMG elements as defined in the code segment below:

 

clip_image015

 

You need to enable drag and drop for the application. How should you complete the relevant code?

 

To answer, select the appropriate option from each drop-down list in the answer area.

 

clip_image016

 

Hot Area:

clip_image018

 

Correct Answer:

clip_image020

 

 

QUESTION 35

DRAG DROP

You are creating a function named getText(). The function must retrieve information from text files that are stored on a web server. You need to develop the function to meet the requirement. Which code segment or segments should you use?

 

To answer, drag the appropriate command from the list of commands to the correct location or locations in the work 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.

 

Select and Place:

clip_image022

 

Correct Answer:

clip_image024

 

 

QUESTION 36

DRAG DROP

You are developing an application for a retail store. The application will be used on mobile devices to provide real-time directions to the store.

You have the following requirements:

 

Ÿ   The application must find out a user’s location.

Ÿ   As the user moves, the application must update the screen with the new location.

Ÿ   As the user moves, the application must display the user’s speed.

 

You need to develop the application to meet the requirements. Which code segment or segments should you use?

 

To answer, drag the appropriate code segment or segments to the correct location in the work 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.

 

Select and Place:

clip_image026

 

Correct Answer:

clip_image028

 

 

QUESTION 37

HOTSPOT

You develop a webpage. You create the following HTML markup:

 

clip_image029

 

The layout of the webpage must contain three rows.

The first row spans the entire width of the page and is labeled #Top.

The second row contains three columns.

The first column is labeled #Left; the second column is labeled #Main; and the right column is labeled #Right.

The #Left and #Right columns are a fixed width.

The #Main column occupies the remaining available space.

The third and final row spans the entire width of the page and is labeled #Bottom.

The layout of the webpage must resemble the following image:

 

clip_image030

 

You need to create the CSS styles to implement the layout. How should you complete the relevant styles?

 

To answer, select the appropriate option from each drop-down list in the answer area.

 

clip_image031

 

Hot Area:

clip_image033

 

Correct Answer:

clip_image035

 

 

QUESTION 38

DRAG DROP

You develop an HTML application that calls a Simple Object Access Protocol (SOAP) web service to retrieve data. You need to load data from the web service. What should you do?

 

To answer, drag the appropriate code segment or code segments to the correct location or locations in the answer area. Use only code segments that apply.

 

Select and Place:

clip_image037

 

Correct Answer:

clip_image039

 

 

QUESTION 39

HOTSPOT

You are creating a custom style by using CSS3.

 

You have the following requirements to complete the style:

 

Ÿ   If the text in a line must wrap to another line, the last word must be able to break across lines.

Ÿ   All text must be black and have a blue shadow, such that the text appears to glow blue.

 

The text must look like the following:

 

clip_image040

 

You need to complete the CSS3 style. How should you complete the relevant code?

 

To answer, select the appropriate option from each drop-down list in the answer area.

 

clip_image041

 

Hot Area:

clip_image042

 

Correct Answer:

clip_image043

 

 

QUESTION 40

HOTSPOT

You are developing a web page. The webpage must display a container. The container must display three colored rectangles near the top of the container. The colored rectangles are, in order, green, red, and yellow. The rectangles are aligned horizontally and evenly spaced across the width of the container. The layout of the page must resemble the following image:

 

clip_image044

 

You need to ensure that the page renders properly. How should you complete the relevant styles?

 

To answer, select the appropriate option from each drop-down list in the answer area.

 

clip_image045

 

Hot Area:

clip_image046

 

Correct Answer:

clip_image047

 

Comments are closed.