Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Free VCE and PDF Exam Dumps from PassLeader

 Vendor: Microsoft

 Exam Code: 98-375

 Exam Name: HTML5 Application Development Fundamentals

 Question 61 -- Question 75

Visit PassLeader and Download Full Version 98-375 Exam Dumps

QUESTION 61
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

Answer: AC
Explanation:
A: The innerHTML property sets or returns the inner HTML of an element.
Example:
document.getElementById('myAnchor').innerHTML="Contoso";
C: 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 62
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.

Answer: A

QUESTION 63
Which two are WebSocket events? (Choose two.)

A. onconnect
B. onmessage
C. ondatareceived
D. onopen

98-375 Exam Dumps 98-375 Exam Questions 98-375 PDF Dumps 98-375 VCE Dumps
http://www.passleader.com/98-375.html
Free VCE and PDF Exam Dumps from PassLeader

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 64
You write the following JavaScript code. (Line numbers are included for reference only.)

You need to write a function that will initialize and encapsulate the member variable full name.
Which are two possible code fragments you could insert at line 02 to achieve this goal? (Each
correct answer presents a complete solution. Choose two.)

A. Option A
B. Option B
C. Option C
D. Option D

Answer: BD
Explanation:
98-375 Exam Dumps 98-375 Exam Questions 98-375 PDF Dumps 98-375 VCE Dumps
http://www.passleader.com/98-375.html
Free VCE and PDF Exam Dumps from PassLeader
Note:
- In JavaScript this always refers to the "owner" of the function we're executing, or rather, to the
object that a function is a method of.
- If you assign a value to variable that has not yet been declared, the variable will automatically be
declared as a GLOBAL variable.
This statement:
carname="Volvo";
Will declare the variable carname as a global variable , even if it is executed inside a function.

QUESTION 65
Your HTML5 code includes this code segment:

Which JavaScript code fragment will determine that a visitor has selected the "Chocolate" radio
button?

A. Option A
B. Option B
C. Option C
D. Option D

Answer: A

QUESTION 66
Which JavaScript method allows you to register multiple handlers for a single touch event?

A. dispatchEvent
B. initUIEvent
C. addEventListener
D. initEvent

Answer: C

QUESTION 67
When you are working with the path API, what is the purpose of the clip method?

A. pastes a shape object in from the system clipboard

98-375 Exam Dumps 98-375 Exam Questions 98-375 PDF Dumps 98-375 VCE Dumps
http://www.passleader.com/98-375.html
Free VCE and PDF Exam Dumps from PassLeader
B. constrains the rendered output of the shape object
C. copies the shape object to the system clipboard
D. stores the shape object for later reference in script

Answer: B

QUESTION 68
You need to ensure the scope of a variable named j is limited to the block of a single function
named foo(). Which JavaScript code fragment will accomplish this?

A. Option A
B. Option B
C. Option C
D. Option D

Answer: A

QUESTION 69
When you are using the GeoLocation API, which two arguments does the getCurrentPosition
function utilize? (Choose two.)

A. success callback
B. MAC address
C. browser type
D. ip address
E. failure callback

Answer: DE
Explanation:
E: The getCurrentPosition() method returns an object if it is successful. The latitude, longitude and
accuracy properties are always returned. The second parameter of the getCurrentPosition()
method is used to handle errors. It specifies a function to run if it fails to get the user's location.

98-375 Exam Dumps 98-375 Exam Questions 98-375 PDF Dumps 98-375 VCE Dumps
http://www.passleader.com/98-375.html
Free VCE and PDF Exam Dumps from PassLeader
Note:
- The HTML5 Geolocation API is used to get the geographical position of a user.
- The getCurrentPosition() method returns an object if it is successful. The latitude, longitude and
accuracy properties are always returned.

QUESTION 70
You create an instance named "ac" of an accelerometer object. Which code fragment will retrieve
a single update?

A. Option A
B. Option B
C. Option C
D. Option D

Answer: C

QUESTION 71
Drag and Drop Question
Match the HTML5 elements to the corresponding functions. (To answer, drag the appropriate
HTML5 element from the column on the left to its function on the right. Each HTML5 element may
be used once, more than once, or not at all. Each correct match is worth one point.)

Answer:

98-375 Exam Dumps 98-375 Exam Questions 98-375 PDF Dumps 98-375 VCE Dumps
http://www.passleader.com/98-375.html
Free VCE and PDF Exam Dumps from PassLeader

QUESTION 72
Which HTML5 tag is used to mark text that has been added to the original document?

A. <q>
B. <pre>
C. <ins>
D. <i>

Answer: C

QUESTION 73
Which HTML5 code fragment shows a way to validate numeric input as having a value from 1 to
100, inclusive?

A. Option A
B. Option B
C. Option C
D. Option D

Answer: D

98-375 Exam Dumps 98-375 Exam Questions 98-375 PDF Dumps 98-375 VCE Dumps
http://www.passleader.com/98-375.html
Free VCE and PDF Exam Dumps from PassLeader
QUESTION 74
Which element should you use to rotate an SVG square?

A. path
B. ANIMATETRANSFORM
C. ANIMATEMOTION
D. AREA SHAPE

Answer: B

QUESTION 75
Which three events are valid for the HTML CANVAS element? (Choose three.)

A. scroll
B. mouseup
C. blur
D. datareceived
E. hover

Answer: ABE
Explanation:
B: You can also detect a mouse click on your canvas. Again, this is done with addEventListener.
There are quite a few mouse events you can detect: mousedown, mouseup, mousemove,
mouseout and mouseover.
E: MouseHover Event Mouse Hover Event is a combination of two mouse events MouseOver and
MouseOut so it makes easier for the developer to handle the hover event easily.
Note:
- If you want to target a touch-enabled device like an iPad, iPhone, Android tablet or phone, etc,
then you need the touch events. These events are touchstart, touchend, touchcancel, touchleave,
touchmove.

Visit PassLeader and Download Full Version 98-375 Exam Dumps

98-375 Exam Dumps 98-375 Exam Questions 98-375 PDF Dumps 98-375 VCE Dumps
http://www.passleader.com/98-375.html

You might also like