Chapter 5 Flashcards

To learn Chapter 5 concepts

1
Q

What is the event handler for vanilla JavaScript?

A

addEventListener

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

What is a touch event?

A

Any action taken by an application when a gesture is applied

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

What does ‘ontouchstart’ do?

A

It is an event that will trigger when someone is using a touch screen and touches the screen to start

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

What does API stand for?

A

Application Programming Interface

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

Now, define what API is

A

An API is a set of routines, protocols, and tools that we use to build apps. Specifically for programming graphical user interface elements otherwise known as GUI elements.

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

What is a Web Worker?

A

These are APIs that allows scripts to run background in parallel; they connect to multiple webpages to get real-time data. From Mozilla Developers network:
Web Workers makes it possible to run a script operation in a background thread separate from the main execution thread of a web application. The advantage of this is that laborious processing can be performed in a separate thread, allowing the main (usually the UI) thread to run without being blocked/slowed down.

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

What is a Web Socket?

A

An API with consistent communication between a client and a web server.

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

What is full-duplex communication?

A

It’s an old networking term that means two devices connected to a network can communicate back and forth at the same time

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

Geolocation API

A

an interface that uses latitude and longitude coordinates to provide a devices’ location

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

What is a try-catch sequence?

A

Try to do something, if it doesn’t work we’ll catch an error message and if we do catch an error message we want something else to happen

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

What are the main events associated with WebSocket communcations

A

onopen: when a socket opens
onmessage: when the web server receives a message
onclose: when a socket closes

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

File API

A

Used for uploading files from local storage to remote server

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

Web Storage

A

Saves session data within the browser or device memory. The sessionStorage() method keeps data until the browser is closed (for one session) localStorage() saves large data persistently (session-to-session).

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

Local storage

A

Used to save persistent data. It is stored in key/value pairs. It is browser-specific

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

Hardware capabilities

A

GPS
Accelerometer
Camera

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

JavaScript is a

A
  • dot notation scripting language used to enhance web pages
17
Q

Steps involved in creating an app are:

A

Plan your project
Design the user interface
Update the manifest file
Write Code
Build the app
Debug and test
Package
Validate
Deploy

18
Q

What is an App package

A

A file that explains what files are needed in order for an app to run properly.

19
Q

What is a process?

A

A process is a program that’s being executed

20
Q

What is state management

A

It is maintaining browser data

21
Q

App state

A

Starts when a web browser sends the first request for a webpage to a web server

22
Q

Session state

A

Happens when the first request for an application opens a session, and ends when we close the session

23
Q

Persistent state

A

Refers to the data an application needs after a session ends and this data is used the next time one gets on a website

24
Q

localStorage

A

Data is stored from session to session without any time limit

25
Q

sessionStorage

A

data is stored only for one session, and once the browser closes that session is deleted

window.sessionStorage

Save data to sessionStorage:
sessionStorage.setItem(“key”, “value”);

Read sessionStorage data:
var name = sessionStorage.getItem(“key”);

26
Q

App Container

A

A memory space in which an app can run without interference from other apps

27
Q

App Package

A

The result of compressing files and folders into a single file which can then be installed as an app. An executable

28
Q

ALM

A

Application Lifecycle Management