Lessons 8-10 Flashcards

1
Q

What is an accelerometer?

A

A device that measures acceleration, which is a change in speed or direction over time. Sensor detects forces applied to the device e.g. movement, gravity.

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

What is a Blob object?

A

Provides access to raw binary data.

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

Define a resistive touch screen.

A

A resistive touch screen is made up of several layers, the topmost of which flexes when
pressed and pushes into the layer underneath. Sensors detect the pressure, which is how
the system knows which part of the screen has been pressed. The touch screens used in
hospitals and restaurants are often resistive.

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

What is civic data?

A

Location data that’s more easily understood by humans e.g. map or address.

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

What does it mean if something is device-independent?

A

A program or interface that runs software that produces similar results on a wide variety of hardware.

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

Define a file API.

A

Used to upload files from a local disk or device’s local storage to a remote server. You can display uploaded files in a Web app. No need for a plug in.

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

What is geodetic data?

A

Raw location data e.g. latitude and longitude or meters.

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

Define a geolocation API.

A

Get’s a user’s geographical coordinates (lat and long). Can show a marker on a map.

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

What is local storage?

A

Persistent data saved to the browser in persistent memory in order to be reopened later on. No expiration date.

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

What does it mean if something is platform-independent?

A

Means you can use HTML5 to create pages and apps that will run on various different browsers, devices or systems.

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

What does the touchcancel event do?

A

Triggered when the device launches another app.

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

Define a touch object?

A

Detects input from touch-enabled devices. Read only objects.

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

What is session storage?

A

Temporary data kept for only one session until the browser is closed. Erased at the end of a session.

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

What does the Web Hypertext Application Technology

Working Group do?

A

Created by Mozilla and Opera. Maintains a living HTML specification that includes APIs that were not originally part of the HTML5 spec. e.g. Geolocation, Webworkers, Websockets, File API.

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

Define a webworker API?

A

Web workers are scripts that run in the background, performing calculations or other actions that allow for a more responsive UI.

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

Define a websocket API?

A

WebSockets allow you to open a persistent connection between a client and a Web server and exchange text/binary files. Reduces the amount of overhead for real time communication.

17
Q

What does the touchcancel event do?

A

Triggered when the device launches another app. Helps keep track of active touch objects.

18
Q

Define a FileList.

A

An array like sequence of File objects including a folder of files from local storage.

19
Q

Define a File Reader?

A

Provides method to read and display a file.

20
Q

Examples of device-independent apps you can use with HTML5?

A

GPS, Accelerometer, Camera

21
Q

Which HTML attribute can be used to retrieve data from cameras, camcorders, webcams and microphones?

A

Capture attribute

22
Q

Define an animation.

A

The display of a sequence of static images at a fast enough speed to create the
illusion of movement. Regarding the user interface, animation has to do with changing a
display to make it dynamic.

23
Q

What is an AppCache?

A

AppCache saves a copy of your Web site files locally, in a structured form. The files include HTML, CSS, and JavaScript, along with other resources the site needs to run. After a visitor has visited the site once, subsequent visits will load resources quickly from the local copy rather than waiting on a network connection.

24
Q

What does the Canvas element do?

A

HTML5’s canvas element is a drawing area under programmatic control. Creates a container for graphics, and uses JavaScript to draw the graphics dynamically. With JavaScript, you can also animate objects by making them move, change scale, and so on.

25
Q

What are cookies?

A

Cookies are small text files that Web sites save to a computer’s hard disk that contain information about the user and his or her browsing preferences. The content of cookies change as
a user revisits a site and selects different items or changes preferences.

26
Q

Define a data type.

A

Values in JavaScript appear in special appearances or “dressings”, called data types. Most
often encountered are strings, numbers, undefined, null, symbol, Boolean, object.

27
Q

What does Encapsulate mean in JS?

A

There might be a style or policy that is supposed to apply to all pages. In such a case, it’s far more convenient and trouble-free to encapsulate the policy in a JavaScript library that knows how to retrieve
the title for itself.

28
Q

What is JSON?

A

JavaScript Object Notation - to exchange JavaScript objects with a server.

29
Q

What is local storage?

A

Persistent data saved to the browser in persistent memory in order to be reopened later on. No expiration date.

30
Q

What is parsing?

A

Parsing is a term used to describe analysis

of complex information into constituent parts.