Practical - Backend Flashcards

1
Q

What are the client-server model process steps?

A

1) Make Server Requests
2) Receive Responses
3) Display the HTML page

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

What are the Components of an HTTP Request?

A

Method
URL/URI
HTTP Version
Headers
Body (optional)
Query Parameters (optional)
Cookies (optional)

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

List the available HTTP Methods

A

GET
POST
PUT
DELETE
HEAD
CONNECT
OPTIONS
TRACE
PATCH

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

What are the possible HTTP Response Status Codes ranges?

A
  • Informational responses (100 – 199)
  • Successful responses (200 – 299)
  • Redirection messages (300 – 399)
  • Client error responses (400 – 499)
  • Server error responses (500 – 599)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the utility of HTTP Headers?

A

Communicate information between client and server

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

What are the types of HTTP Headers?

A

Request or Response Headers

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

How does the server handle requests?

A

Through sockets

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

What is a server?

A
  • Hardware
    A computer that runs server software and stores website component files
  • Software
    A program that controls how web users access the hosted files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens when you navigate to a url?

A
  1. The browser (e.g., Chrome) creates an HTTP GET request. (client-side)
  2. The request is then sent to the server. (client-server)
  3. The web server program listens to the request through a socket and generates
    the response. (server-side)
  4. The server sends the HTTP response to the client machine. (server-client)
  5. The browser receives the response and renders the website. (client-side)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the layers in a Three-Tier Architecture?

A
  • Presentation Tier
  • Bussiness/Application Tier
  • Data/Storage Tier
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the advantages of Single Page Applications?

A
  • Provide a seamless user experience, especially when the application needs to load data frequently.
  • Ease development by separating data presenting and data processing logics.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a Single Page Application?

A
  • Usually, all necessary HTML, CSS, and Javascript files are retrieved in a single page load.
  • The web page is dynamically rewritten with new data from the web server. Client-side Rendering
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does Uniform Resource Locator comprise of?

A

The URL comprises Scheme, Authority, Path, Parameters, and Fragment.

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

What is REST?

A

REST (Representational State Transfer) is an architectural style described by Roy Thomas Fielding in his doctoral dissertation, published in 2000.

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

List the 6 REST Principles

A
  1. Client-server
  2. Stateless
  3. Cacheable
  4. Uniform interface
  5. Layered system
  6. Code on demand
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a RESTful API?

A

A HTTP-based RESTful API is a Web API written in the style of REST.
* The request uses HTTP methods to access resources.
* The request is sent to an endpoint URL.
* The request uses JSON or XML to transform data.