[Free] Get all latest Microsoft 98-375 Actual Tests 11-20

Ensurepass

QUESTION 11

Your code includes the following fragment:

 

<input type=”text” name=”text1″ id=”myText” />

 

You need to add code that will retrieve the contents of the INPUT element.

 

Which JavaScript code fragment will accomplish this?

 

A.

vartxtContents =document.getElementById(‘text1’).value;

B.

vartxtContents = document.getEIementyById(‘myText’).value;

C.

vartxtContents =document.getElementById(‘text1’);

D.

vartxtContents = document.getElementById(‘myText’);

 

Correct Answer: B

 

 

QUESTION 12

Which two events are supported on touch devices? (Choose two.)

 

A.

click

B.

touchstart

C.

selection

D.

drag

 

Correct Answer: AB

Explanation:

When the user touches the screen both touch and click events will occur.

The touchstart event

A user agent must dispatch this event type to indicate when the user places a touch point on the touch surface.

 

Note:

The main touch events are:

touchstarttriggered when a touch is detected

touchmovetriggered when a touch movement is detected touchendtriggered when a touch is removed e.g. the user’s finger is removed from the touchscreen

touchcanceltriggered when a touch is interrupted, e.g. if touch moves outside of the touch- capable area

 

 

QUESTION 13

The data in a specific HTML5 local storage database can be accessed from:

 

A.

Different browsers on the same device.

B.

Different browsers on different devices.

C.

The same browser on different devices.

D.

The same browser on the same device.

 

Correct Answer: A

 

 

QUESTION 14

You are creating a page by using HTML5. You add script tags to the page. You need to use JavaScript to access an element by id and add a class to the element. Which property or attribute should you use?

 

A.

the tagName property

B.

the className property

C.

the style property

D.

the class attribute

 

Correct Answer: B

 

 

QUESTION 15

Which code fragment sets up a timer that calls a function named “adjust” every second?

 

A.

setTimeout(adjust, 1000);

B.

setInterval(adjust, 1000);

C.

setInterval(adjust, 1);

D.

setTimeout(adjust, 1);

 

Correct Answer: B

 

 

 

 

 

 

QUESTION 16

DRAG DROP

Match the JavaScript code fragments with the HTML5 local storage functions. (To answer, drag the appropriate code fragment from the column on the left to its local storage function on the right. Each code fragment may be used once, more than once, or not at all. Each correct match is worth one point.)

 

clip_image001

 

Correct Answer:

clip_image002

 

 

QUESTION 17

Which two HTML properties can JavaScript access to change the text value of an HTML element? (Choose two.)

 

A.

innerHTML

B.

nodeType

C.

title

D.

nodeValue

 

Correct Answer: AC

Explanation:

The innerHTML property sets or returns the inner HTML of an element.

 

Example:

document.getElementById(‘myAnchor’).innerHTML=”Contoso”;

 

The title property sets or returns the element’s advisory title.

 

Example:

var x=document.getElementsByTagName(‘body’)[0];document.write(“Body title: ” + x.title);

 

 

QUESTION 18

Web Workers define an API for:

 

A.

Publishing frequently updated works for syndication.

B.

Running scripts in the background,

C.

Bi-directional, full-duplex communications over a single TCP socket.

D.

Distributing load across multiple web servers.

 

Correct Answer: A

 

 

QUESTION 19

Which two are WebSocket events? (Choose two.)

 

A.

onconnect

B.

onmessage

C.

ondatareceived

D.

onopen

 

Correct Answer: BD

Explanation:

Following are the events associated with WebSocket object. Assuming we created Socket object:

 

Event, Event Handler, Description

* open

Socket.onopen

This event occurs when socket connection is established.

* message

Socket.onmessage

This event occurs when client receives data from server.

error

Socket.onerror

This event occurs when there is any error in communication.

* close

Socket.onclose

This event occurs when connection is closed.

 

 

QUESTION 20

You create an interface for a touch-enabled application. During testing you discover that some touches trigger multiple input areas. Which situation will cause this problem?

 

A.

The touch screen is not calibrated.

B.

The input areas are too close together.

C.

The defined input areas are too small.

D.

The input areas are semi-transparent.

 

Correct Answer: B

 

Instant Access to Download Testing Software & PDF File for Microsoft 98-375 Real Exam

Instant Access to Try Microsoft 98-375 Free Demo

This entry was posted in 98-375 Actual Tests and tagged , , , , , . Bookmark the permalink.