MTA 98-375 Flashcards
HTML5 Application Development Fundamentals
Which CSS3 code fragment styles an H2 element only if it is a direct child of a DIV element?
div > h2 {
}
Which CSS property defines which sides of an element where other floating elements are not allowed?
clear
How do you apply a SVG blur filter to the text tag on the page?
filter:url(#blur)
Which layout can you create by using a single CSS3 region?
A table layout
In CSS, the flow-into property deposits:
Content into the flow
Which CSS code fragment centers an image horizontally?
display: block; margin-left: auto; margin-right: auto;
Which positioning scheme places an object in normal document flow?
relative
The variable named “ctx” is the context of an HTML5 canvas object. What does the following code fragment draw? ctx.arc(x, y, r, 0, Math.PI, true);
a semi-circle at the given point
Which three are valid JavaScript variables?
xyz1, int1, _int
Your code includes the following fragment:
You need to add code that will retrieve the contents of the INPUT element. Which JavaScript code fragment will accomplish this?
vartxtContents = document.getEIementyById(‘myText’).value;
Which two events are supported on touch devices?
click, touchstart
The data in a specific HTML5 local storage database can be accessed from:
Different browsers on the same device
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?
the className property
Which code fragment sets up a timer that calls a function named “adjust” every second?
setInterval(adjust, 1000);
Which two HTML properties can JavaScript access to change the text value of an HTML element?
InnerHTML, title
Web Workers define an API for:
Publishing frequently updated works for syndication
Name two WebSocket events
onmessage, onopen
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?
The input areas are too close together.
An HTML5 application can be used without going through a manufacturer’s approval process if:
The browser on the device supports HTML5
Which item specifies resources for an offline HTML5 application?
a CSS style sheet
In HTML5, which two objects in the Web Storage specification are used to store data on the client?
sessionStorage, localStorage
Which two code fragments represent ways to use HTML5 to save values to session storage?
sessionStorage.setItem(‘someKey’, ‘someValue’);
sessionStorage.someKey=’someValue’;
When you are testing a touch interface, which two gestures can you simulate by using a mouse?
tap, rotate
Which three event attributes are used with the CAPTION element in HTML5?
onmouseover, ondblclick, onkeydown
Which HTML5 tag defines superscript text?
Which are two features of SVG?
uses high performance raster-based graphics
can be modified using javascript
Which HTML5 tag is used to display text with a fixed-width font and preserves both spaces and line breaks?
<pre></pre>
What does “V” stand for in the file type SVG?
Vector
Which tag is used to create a drop-down list in HTML5?
Select
Which attribute prefills a default value for an input element in HTML5?
placeholder
Which three technologies does HTML5 encompass?
CSS, HTML, Javascript
You create an interface for a touch-enabled application.
You discover that some of the input buttons do not trigger when you tap the screen. You need to identify the cause of the problem.
What are two possible causes?
The input areas overlap with other input areas
The defined input areas are not large enough
An HTML5 application can run without an Internet connection if:
the application specifies the use of an ApplicationCache interface
On a Windows touch device, which gesture serves the same purpose as a right-click of the mouse?
hold
Which three components define the URL used for localStorage data in HTML5?
scheme, hostname, unique port
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?
use the firstChild property and set the new text value with the nodeValue property
You create an instance named “location” of a geolocation object.
Which code fragment will initiate periodic updates of a device’s geographic location?
location.watchPostition(showLocation);
You need to use JavaScript to access the “section1” element in the following code fragment: <div></div>
getElementById
Which three properties can be used with the TouchEvent object in the Safari touch API?
scale, touches, rotation
Which two terms represent interfaces in the File API?
Blob, FileList
Which semantic tags are used to define layouts in HTML5?
Which two HTML5 tags format text content only?
<strong>, <em></em></strong>
In HTML5, the autofocus attribute:
defines the cursor location when a form is first accessed
Which tags are used with the HTML5 TABLE element?
Which JavaScript method is used to draw a circle on a canvas?
arc
Which term describes the canvas API?
immediate-mode
During testing you discover that some touches trigger multiple input areas. Which situation will cause this problem?
The input areas are too close together
How do you retrieve a value from local storage?
localStorage.getItem(“value”)
Which two css attributes produce a scroll bar if your content overflows its element?
scroll
auto
What positioning method makes sure a certain element to always default its position to directly follow the previous element?
absolute
Which two functions support 2D transformation in CSS?
matrix()
skew()
How do you rotate text counterclockwise in Internet Explorer?
-ms-transform: rotate(-30deg);
Which term describes the canvas API?
immediate-mode
Which element should you use to rotate an SVG square?
AnimateTransform