MTA 98-375 Flashcards

HTML5 Application Development Fundamentals

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?

A

tap, rotate

24
Q

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

A

onmouseover, ondblclick, onkeydown

25
Q

Which HTML5 tag defines superscript text?

A

26
Q

Which are two features of SVG?

A

uses high performance raster-based graphics

can be modified using javascript

27
Q

Which HTML5 tag is used to display text with a fixed-width font and preserves both spaces and line breaks?

A

<pre></pre>

28
Q

What does “V” stand for in the file type SVG?

A

Vector

29
Q

Which tag is used to create a drop-down list in HTML5?

A

Select

30
Q

Which attribute prefills a default value for an input element in HTML5?

A

placeholder

31
Q

Which three technologies does HTML5 encompass?

A

CSS, HTML, Javascript

32
Q

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?

A

The input areas overlap with other input areas

The defined input areas are not large enough

33
Q

An HTML5 application can run without an Internet connection if:

A

the application specifies the use of an ApplicationCache interface

34
Q

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

A

hold

35
Q

Which three components define the URL used for localStorage data in HTML5?

A

scheme, hostname, unique port

36
Q

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 firstChild property and set the new text value with the nodeValue property

37
Q

You create an instance named “location” of a geolocation object.
Which code fragment will initiate periodic updates of a device’s geographic location?

A

location.watchPostition(showLocation);

38
Q

You need to use JavaScript to access the “section1” element in the following code fragment: <div></div>

A

getElementById

39
Q

Which three properties can be used with the TouchEvent object in the Safari touch API?

A

scale, touches, rotation

40
Q

Which two terms represent interfaces in the File API?

A

Blob, FileList

41
Q

Which semantic tags are used to define layouts in HTML5?

A
42
Q

Which two HTML5 tags format text content only?

A

<strong>, <em></em></strong>

43
Q

In HTML5, the autofocus attribute:

A

defines the cursor location when a form is first accessed

44
Q

Which tags are used with the HTML5 TABLE element?

A
45
Q

Which JavaScript method is used to draw a circle on a canvas?

A

arc

46
Q

Which term describes the canvas API?

A

immediate-mode

47
Q

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

48
Q

How do you retrieve a value from local storage?

A

localStorage.getItem(“value”)

49
Q

Which two css attributes produce a scroll bar if your content overflows its element?

A

scroll

auto

50
Q

What positioning method makes sure a certain element to always default its position to directly follow the previous element?

A

absolute

51
Q

Which two functions support 2D transformation in CSS?

A

matrix()

skew()

52
Q

How do you rotate text counterclockwise in Internet Explorer?

A

-ms-transform: rotate(-30deg);

53
Q

Which term describes the canvas API?

A

immediate-mode

54
Q

Which element should you use to rotate an SVG square?

A

AnimateTransform