98-375 Exam - HTML5 Application Development Fundamentals

certleader.com

Q1. Which three properties can be used with the TouchEvent object in the Safari touch API? (Choose three.) 

A. offsetTop 

B. clientHeight 

C. scale 

D. touches 

E. rotation 

Answer: C,D,E 

Q2. What is the default value of the CSS position property? 

A. fixed 

B. absolute 

C. static 

D. relative 

Answer:

Q3. On a Windows touch device, which gesture serves the same purpose as a right-click of the mouse? 

A. swipe 

B. pinch 

C. tap 

D. hold 

Answer:

Q4. When you are testing a touch interface, which two gestures can you simulate by using a mouse? (Choose two.) 

A. tap 

B. pinch 

C. flick 

D. rotate 

Answer: A,D 

Q5. Which two outcomes will this code fragment accomplish? (Each correct answer presents a complete solution. Choose two.) 

blob.png

A. On pre-HTML5 browsers, the happy.wav file will not play, and instead Hello World will be displayed. 

B. On an HTML5 browser that supports .wav files, the happy.wav file will be played and Hello World will be hidden. 

C. On an HTML5 browser that supports .wav files, the happy.wav file will be played and Hello World will be displayed. 

D. on pre-HTMLS browsers, the happy.wav file will play and Hello World will be hidden. 

Answer: A,B 

Explanation: Audio on the Web 

Until now, there has not been a standard for playing audio files on a web page. 

Today, most audio files are played through a plug-in (like flash). However, different 

browsers may have different plug-ins. 

HTML5 defines a new element which specifies a standard way to embed an audio file on a 

web page: the <audio> element. 

Browser Support 

Internet Explorer 9+, Firefox, Opera, Chrome, and Safari support the <audio> element. 

Example: 

<audio controls> 

<source src="horse.ogg" type="audio/ogg"> 

<source src="horse.mp3" type="audio/mpeg"> 

Your browser does not support the audio element. 

</audio> 

Q6. 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. 

Answer:

Q7. Which two CSS properties can be used to position multiple HTML elements next to one another? (Choose two.) 

A. display 

B. position 

C. overflow 

D. float 

Answer: B,D 

Explanation: CSS position Property 

The position property specifies the type of positioning method used for an element (static, 

relative, absolute or fixed). 

CSS float Property 

The float property specifies whether or not a box (an element) should float. 

Q8. Which three statements describe cookies? (Choose three.) 

A. They can be created, read, and erased using the document.cookie property. 

B. They are limited in size to 5 MB. 

C. They are deleted automatically when the session ends. 

D. They can be used only by pages on the domain where they were set. 

E. They contain the data in the form of a name=value pair. 

Answer: A,D,E 

Explanation: Note: Cookies are small, usually randomly encoded, text files that help your browser navigate through a particular website. The cookie file is generated by the site you're browsing and is accepted and processed by your computer's browser software. The cookie file is stored in your browser's folder or subfolder. 

Q9. Which CSS3 code fragment will style only the external links in an HTML document? 

blob.png

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q10. 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: A,C 

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);