Networking Flashcards

1
Q

What are the valid top level types of JSON ?

A

The valid top level types are dictionary and array.

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

What is HTTP?

A

HTTP is an internet protocol for allowing client/server communication. The client in this case our iOS app makes a request to a Web API / server and gets a response (json) back that we parse (convert) to Swift objects.

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

What is CRUD ?

A

Create. Read. Update. Delete. This acronym encapsulated the cycle of object creation and modification.

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

Name some HTTP methods ?

A

GET, POST, DELETE, PUT, UPDATE.

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

What is a status code and give an example ?

A

Status codes are received via an http response from a server request to indicate the state and validity of the request. 500 status code implies there’s an issue with the server.

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

What are two ways in which web content is formatted for delivery to a client ?

A

XML and JSON, the latter being the more popular and easier to understand and parse.

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

Explain RESTFul APIs ?

A

REST is a standard architecture that web developers use present data to a client.

A REST API is a way for two computer systems to communicate over HTTP in a similar way to web browsers and servers. Sharing data between two or more systems has always been a fundamental requirement of software development

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

What is a MIME type ?

A

MIME (Multipurpose Internet Mail Extensions) type is a label used to describe the media content of a piece of data.

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

What’s the difference between Websockets and HTTP ?

A

Websockets allow for a constant two-way stream of data and HTTP transfers data via a request -> response model.

e. g Stock market ticker uses websockets for real time data streaming.
e. g Fetching a new Instagram photo using http protocol, client request, server response.

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