Ucertify offers free demo for 98-375 exam. "HTML5 Application Development Fundamentals", also known as 98-375 exam, is a Microsoft Certification. This set of posts, Passing the Microsoft 98-375 exam, will help you answer those questions. The 98-375 Questions & Answers covers all the knowledge points of the real exam. 100% real Microsoft 98-375 exams and revised by experts!
Q11. What does the following HTML5 code fragment do?
A. It plays the myVacation.avi video if the browser supports it; otherwise, plays the myVacation.ogg video if the browser supports it.
B. It plays two videos: first myVacation.avi, and then myVacation.ogg.
C. It plays both videos simultaneously, myVacation.avi and myVacation.ogg.
D. It prompts the user to choose which format of the myVacation video it should play, .avi or .ogg.
Answer: D
Q12. Which three code fragments define an HTML input control? (Choose three.)
A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
Answer: C,D,E
Explanation: HTML input types include: button checkbox color date datetime datetime-local email file hidden
image
month
number
password
radio
range
reset
search
submit
tel
text
time
url
week
Note:
HTML Forms - The Input Element
The most important form element is the <input> element.
The <input> element is used to select user information.
An <input> element can vary in many ways, depending on the type attribute. An <input>
element can be of type text field, checkbox, password, radio button, submit button, and
more.
Q13. Which three events are valid for the HTML CANVAS element? (Choose three.)
A. scroll
B. mouseup
C. blur
D. datareceived
E. hover
Answer: A,B,E
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.
Q14. Which two code segments declare JavaScript functions? (Choose two.)
A. varfunct= (a);
B. function Foo(a){
…
}
C. var a=new Foo();
D. Foo=function(a){
...}
Answer: C,D
Explanation: Example:
function add(x, y) {
return x + y;
}
var t = add(1, 2);
alert(t); //3
Example:
//x,y is the argument. 'returnx+y' is the function body, which is the last in the argument list.
var add = new Function('x', 'y', 'return x+y');
var t = add(1, 2);
alert(t); //3
Incorrect:
Not A: funct keyword not used in JavaScript
Q15. You add script tags to an HTML page. You need to update the text value within a specific HTML element. You access the HTML element by id. What should you do next?
A. Use the createTextNode method.
B. Use the appendChild method.
C. Set the new text value with the setAttribute method.
D. Use the firstChild property and set the new text value with the nodeValue property.
Answer: D
Q16. 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
Answer: B
Q17. Which item specifies resources for an offline HTML5 application?
A. a CSS style sheet
B. an HTML5 file
C. a JavaScript file
D. a cache manifest file
Answer: A
Q18. In HTML5, which two objects in the Web Storage specification are used to store data on the client? (Choose two.)
A. websocket
B. navigator
C. cache
D. sessionStorage
E. localStorage
Answer: D,E
Explanation: There are two new objects for storing data on the client:
localStorage - stores data with no expiration date sessionStorage - stores data for one session
Q19. Which code shows the correct way to nest tags in HTML5?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q20. Which CSS property defines which sides of an element where other floating elements are not allowed?
A. float
B. position
C. display
D. clear
Answer: D