MTA 98-375 Flashcards Preview

MTA Exam Preparation > MTA 98-375 > Flashcards

Flashcards in MTA 98-375 Deck (54):
1

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

div > h2 {
}

2

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

clear

3

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

filter:url(#blur)

4

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

A table layout

5

In CSS, the flow-into property deposits:

Content into the flow

6

Which CSS code fragment centers an image horizontally?

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

7

Which positioning scheme places an object in normal document flow?

relative

8

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

9

Which three are valid JavaScript variables?

xyz1, int1, _int

10

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;

11

Which two events are supported on touch devices?

click, touchstart

12

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

Different browsers on the same device

13

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

14

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

setInterval(adjust, 1000);

15

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

InnerHTML, title

16

Web Workers define an API for:

Publishing frequently updated works for syndication

17

Name two WebSocket events

onmessage, onopen

18

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.

19

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

The browser on the device supports HTML5

20

Which item specifies resources for an offline HTML5 application?

a CSS style sheet

21

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

sessionStorage, localStorage

22

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

sessionStorage.setItem('someKey', 'someValue');
sessionStorage.someKey='someValue';

23

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

tap, rotate

24

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

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