MTA 98-375 Flashcards

HTML5 Application Development Fundamentals (54 cards)

1
Q

Which CSS3 code fragment styles an H2 element only if it is a direct child of a DIV element?

A

div > h2 {

}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which CSS property defines which sides of an element where other floating elements are not allowed?

A

clear

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you apply a SVG blur filter to the text tag on the page?

A

filter:url(#blur)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which layout can you create by using a single CSS3 region?

A

A table layout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In CSS, the flow-into property deposits:

A

Content into the flow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which CSS code fragment centers an image horizontally?

A

display: block; margin-left: auto; margin-right: auto;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which positioning scheme places an object in normal document flow?

A

relative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

a semi-circle at the given point

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which three are valid JavaScript variables?

A

xyz1, int1, _int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which two events are supported on touch devices?

A

click, touchstart

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

Different browsers on the same device

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
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 className property

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

A

setInterval(adjust, 1000);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

A

InnerHTML, title

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Web Workers define an API for:

A

Publishing frequently updated works for syndication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Name two WebSocket events

A

onmessage, onopen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

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 input areas are too close together.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

An HTML5 application can be used without going through a manufacturer’s approval process if:

A

The browser on the device supports HTML5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Which item specifies resources for an offline HTML5 application?

A

a CSS style sheet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

In HTML5, which two objects in the Web Storage specification are used to store data on the client?

A

sessionStorage, localStorage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Which two code fragments represent ways to use HTML5 to save values to session storage?

A

sessionStorage.setItem(‘someKey’, ‘someValue’);

sessionStorage.someKey=’someValue’;

23
Q

When you are testing a touch interface, which two gestures can you simulate by using a mouse?

24
Q

Which three event attributes are used with the CAPTION element in HTML5?

A

onmouseover, ondblclick, onkeydown

25
Which HTML5 tag defines superscript text?
26
Which are two features of SVG?
uses high performance raster-based graphics | can be modified using javascript
27
Which HTML5 tag is used to display text with a fixed-width font and preserves both spaces and line breaks?

28
What does "V" stand for in the file type SVG?
Vector
29
Which tag is used to create a drop-down list in HTML5?
Select
30
Which attribute prefills a default value for an input element in HTML5?
placeholder
31
Which three technologies does HTML5 encompass?
CSS, HTML, Javascript
32
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
33
An HTML5 application can run without an Internet connection if:
the application specifies the use of an ApplicationCache interface
34
On a Windows touch device, which gesture serves the same purpose as a right-click of the mouse?
hold
35
Which three components define the URL used for localStorage data in HTML5?
scheme, hostname, unique port
36
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
37
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);
38
You need to use JavaScript to access the "section1" element in the following code fragment:
getElementById
39
Which three properties can be used with the TouchEvent object in the Safari touch API?
scale, touches, rotation
40
Which two terms represent interfaces in the File API?
Blob, FileList
41
Which semantic tags are used to define layouts in HTML5?
42
Which two HTML5 tags format text content only?
,
43
In HTML5, the autofocus attribute:
defines the cursor location when a form is first accessed
44
Which tags are used with the HTML5 TABLE element?
45
Which JavaScript method is used to draw a circle on a canvas?
arc
46
Which term describes the canvas API?
immediate-mode
47
During testing you discover that some touches trigger multiple input areas. Which situation will cause this problem?
The input areas are too close together
48
How do you retrieve a value from local storage?
localStorage.getItem("value")
49
Which two css attributes produce a scroll bar if your content overflows its element?
scroll | auto
50
What positioning method makes sure a certain element to always default its position to directly follow the previous element?
absolute
51
Which two functions support 2D transformation in CSS?
matrix() | skew()
52
How do you rotate text counterclockwise in Internet Explorer?
-ms-transform: rotate(-30deg);
53
Which term describes the canvas API?
immediate-mode
54
Which element should you use to rotate an SVG square?
AnimateTransform