Module 3 Flashcards

1
Q

What cache means in English?

A

A collection of items stored somewhere for later use.

Ex: A weapon cache.

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

What is cache in a computer?

A

A place where data is stored for later fast reading.

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

Which one of the following is not a recommended method of debugging code?

  1. Review your code for errors
  2. Google for possible solutions
  3. Clear your cache
  4. Utilize the nav element
A
  1. Utilize the nav element
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What AJAX stands for?

A

Asynchronous JavaScript and XML

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

Why AJAX is asynchronous?

A

Because a request can be done indepent of the request of a full webpage.

Ex: a request can be done to change the video shown of a webpage without requesting a full new webpage.

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

How AJAX acomplish its task?

A

By combining JavaScript and XML.

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

What API stands for?

A

Application Programming Interface.

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

What JSON stands for?

A

JavaScript Object Notation

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

What are the two elements in JSON used to describe the format of data?

A

Key/Value Pairs and Ordered List of Values.

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

Give an example of Key/Value Pair in JSON.

A

Key: value

“Age:”: 15
“Name”: “Angela Smith”

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

Give an example of Ordered List of Values.

A

name of ordered list: [value1, value2, value3]

“MajoAreasOfStudy”: [“Physics”, “Computer Science”]

Or

{
“student”:
{
“Name”: “Angela Smith”,
“Age”: 15,
“GradePointAverage”: 3.25,
“MajorAreasOfStudy”: [“Physics”, “Computer Science”]
}
}

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

What XHR stands for?

A

XML HTTP Request.

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

What is XHR?

A

XHR is a set of APIs used by script languages to transfer XML to and from a web server using HTTP.

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

What kind of data XHR can be used to transfer?

A

HTML, XML, JSON, and more.

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

What are the main features of the Ruby programming language?

A

Suitable for writing scripts as well as robust object-oriented programs.

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

What is Ruby on Rails?

A

A webaplication framework that is written in Ruby.

17
Q

What State means in English?

A

The condition or status of a thing at a specific point in time.

18
Q

What is a Distributed System?

A

A computing system in which the various elements of the system are located on different computers on a network.

19
Q

What is a Distributed Program?

A

Programs designed to work together in a Distributed System.

Ex: “client/server”

20
Q

What Distributed Programs need to coordinate their actions?

A

A protocol.

21
Q

What means to say that HTTP is a stateless protocol?

A

It means that HTTP doens’t account for the fact that the state of some information on the server and the client can change states and become unsynchronized.

22
Q

Give an example of how HTTP can be stateless.

A

A client request a list of costumers of a server. The server respond with the list of costumers. Later the list of costumers is updated in the server and the client change it own version of the list on the client side. Now the two lists are unsynchronized.

23
Q

What is the difference between “stateful” and “stateless”?

A

Stateless means “neither the client nor the server are aware of the state of the other at any particular point in time” and stateful means “the various actions that take place on the server and the client are remembered and accounted for”.

24
Q

Give an example of a definition of a function in JavaScript.

A

function add(num1, num2)
{
return num1 + num2
}

25
Q

What is a method in JavaScript?

A

A set of code, associated with an object, that is performed on the object itself.

26
Q

Give an example of a method in JavaScript.

A

const person = {
firstName: “John”,
lastName: “Doe”,
id: 5566,
fullName: function() {
return this.firstName + “ “ + this.lastName;
}
};

27
Q

What the Document.getElementById method does?

A

Returns an html element by using its id attribute.

28
Q

What REPL stands for?

A

read-eval-print-loop.

29
Q

What is REPL?

A

Interactive computer programming enviroment that allows developers to write code and see a near-immediate result.

30
Q

What DOM stands for?

A

Document Object Model.

31
Q

What is DOM?

A

Is the interface for HTML.

32
Q

HTTP is a _____ protocol.

  1. stateless
  2. stateful
A
  1. stateless
33
Q

Which one of the following terms is best defined as “a collection of methods that allow different programs to communicate with each other”?

  1. Real time
  2. AJAX
  3. Static website
  4. API
A
  1. API
34
Q

The DOM is a … of the various objects in the HTML document.

A

model

35
Q

How DOM works?

A

For every html element a model is created and called “object model”. These object models are presented as a tree structure where each node is an object model.