Quiz
HTTP + REST + CRUD
Este quiz tem tipos de pergunta que abrem no player de sempre.
Perguntas do quiz (56)
1Label the parts of an HTTP Request

- ARequest Line
- BRequest Headers
- CHTTP Method
- DRequest Message Body
- ERequest Message Header
2What is the standard for web traffic?
- AHTTP/1.1
- BHTTP/1.0
- CHTTP/2.1
- DHTTP/1.3
- EHTTP/2.2
3What should be used to filter search results in an API request?
- ADifferent endpoints for each filter
- BA separate endpoint named /filter
- CQuery Parameters
- DDynamic variables in the URL path
4What is HTTP?
- AThe standard markup language for creating web pages
- BThe agreed-upon standard for how machines communicate over the internet
- CA set of four fundamental operations for interacting with persistent data. Stands for Create, Read, Update, and Delete.
- DSet of 6 architectural principles built around HTML. It’s the most common standard at the moment.
5What is CRUD?
- AThe standard markup language for creating web pages
- BThe agreed-upon standard for how machines communicate over the internet
- CA set of four fundamental operations for interacting with persistent data. Stands for Create, Read, Update, and Delete.
- DSet of 6 architectural principles built around HTML. It’s the most common standard at the moment.
6What is REST?
- AThe standard markup language for creating web pages
- BThe agreed-upon standard for how machines communicate over the internet
- CA set of four fundamental operations for interacting with persistent data. Stands for Create, Read, Update, and Delete.
- DSet of 6 architectural principles built around HTML. It’s the most common standard at the moment.
7What is metadata?
- AA unit of measurement for data; essentially a small chunk of data
- BData that describes the characteristics of data
- CExtraneous data
8What is the Host Header in an HTTP request?

- AWhere we're sending the request to
- BWhat's sending the request
- CWhat we're retrieving from the server
- DWhat we're sending to the server
9What is the Accept Header in an HTTP request?

- AWhere we're sending the request to
- BWhat's sending the request
- CWhat we're retrieving from the host
- DWhat we're sending to the host
10What is the Request Message Body in a HTTP request?
- AWhat's actually being requested by the requester
- BThe description of who is sending the request and what's in it
11What is the Request Message Header in a HTTP request?
- AWhat's actually being requested by the requester
- BThe description of who is sending the request and what's in it
12What is an HTTP method?
- AThe first word of an HTTP request. It determines what is being asked of the receiver.
- BThe request for what is being done itself.
- CThe description of who is sending the request and what's in it
13Which HTTP method is requesting to read in data from the web server?
- AGET
- BPOST
- CPUT
- DDELETE
- EPATCH
- FOPTIONS
- GREMOVE
- HMETHODS
14Which HTTP method is requesting to pass in data to create data on the web server, and allows the server to determine which resource it's applied to?
- AGET
- BPOST
- CPUT
- DDELETE
- EPATCH
- FOPTIONS
- GREMOVE
- HMETHODS
15Which HTTP method is requesting to pass in data to create data on the web server, and ONLY in the specified resource?
- AGET
- BPOST
- CPUT
- DDELETE
- EPATCH
- FOPTIONS
- GREMOVE
- HMETHODS
16Which HTTP method is requesting to remove data from the web server?
- AGET
- BPOST
- CPUT
- DDELETE
- EPATCH
- FOPTIONS
- GREMOVE
- HMETHODS
17Which HTTP method is requesting to apply a partial modification to a resource on the web server?
- AGET
- BPOST
- CPUT
- DDELETE
- EPATCH
- FOPTIONS
- GREMOVE
- HMETHODS
18Which HTTP method is asking what HTTP methods the web server supports?
- AGET
- BPOST
- CPUT
- DDELETE
- EPATCH
- FOPTIONS
- GREMOVE
- HMETHODS
19Label the parts of an HTTP response

- AStatus Line
- BHeaders
- CBody
20The status line is part of the HTTP Request
- AVerdadeiro
- BFalso
21The status line is part of the HTTP Response
- AVerdadeiro
- BFalso
22What is the part of the HTTP response that contains the HTTP version and status code?
- AStatus line
- BHeaders
- CResponse Body
23What is the part of the HTTP response that contains the metadata of the response?
- AStatus line
- BHeaders
- CResponse Body
24What does the body of a HTTP Response contain?
- AThe HTML page being requested
- BThe HTTP version and status code
- CThe metadata of the response
25What is a status code?
- AThe response to the HTTP request to tell the user what to do next or what happened to the request
- BThe first word of an HTTP request. It determines what is being asked of the receiver.
26What does a status code in the 100s mean?
- AIt's an informational response. The server is giving a bit of information back to the client so it can do something while the server is retrieving what was requested of it.
- BThe request was successful
- CA redirectional response sending the client to get the resource at a different URL
- DA client-side error occurred
- EA server-side error occurred
27What does a status code in the 200s mean?
- AIt's an informational response. The server is giving a bit of information back to the client so it can do something while the server is retrieving what was requested of it.
- BThe request was successful
- CA redirectional response sending the client to get the resource at a different URL
- DA client-side error occurred
- EA server-side error occurred
28What does a status code in the 300s mean?
- AIt's an informational response. The server is giving a bit of information back to the client so it can do something while the server is retrieving what was requested of it.
- BThe request was successful
- CA redirectional response sending the client to get the resource at a different URL
- DA client-side error occurred
- EA server-side error occurred
29What does a status code in the 400s mean?
- AIt's an informational response. The server is giving a bit of information back to the client so it can do something while the server is retrieving what was requested of it.
- BThe request was successful
- CA redirectional response sending the client to get the resource at a different URL
- DA client-side error occurred
- EA server-side error occurred
30What does a status code in the 500s mean?
- AIt's an informational response. The server is giving a bit of information back to the client so it can do something while the server is retrieving what was requested of it.
- BThe request was successful
- CA redirectional response sending the client to get the resource at a different URL
- DA client-side error occurred
- EA server-side error occurred
31Select the 6 principles of REST
- AUniform Interface
- BClient-Server [Separation]
- CStateless Operations
- DCacheable
- ELayered Systems
- FCode On Demand
- GInheritance
- HConsistency
- IStateful Operations
32Which principle of REST is optional?
- AStateless Operations
- BUniform Interface
- CCacheable
- DClient-Server [Separation]
- ELayered Systems
- FCode on Demand
33Which principle of REST says that each resource should have a URL, and resources should only be able to be managed using HTTP methods?
- AStateless Operations
- BUniform Interface
- CCacheable
- DClient-Server [Separation]
- ELayered Systems
- FCode on Demand
34Which principle of REST says that there should be a clear separation between the client and the server, in which the client only knows the URL/API and the server treats clients anonymously?
- AStateless Operations
- BUniform Interface
- CCacheable
- DClient-Server
- ELayered Systems
- FCode on Demand
35Which principle of REST says that requests should be cacheable to speed up lookup times, and that cache resources should have an expiration date?
- AStateless Operations
- BUniform Interface
- CCacheable
- DClient-Server
- ELayered Systems
- FCode on Demand
36Which principle of REST says that logic should be stored on separate servers [microservers] and that the client should only know about the gateway to said servers?
- AStateless Operations
- BUniform Interface
- CCacheable
- DClient-Server
- ELayered Systems
- FCode on Demand
37Which principle of REST says that no data stays on the server end, only the client end, so that every request is treated as new?
- AStateless Operations
- BUniform Interface
- CCacheable
- DClient-Server [Separation]
- ELayered Systems
- FCode on Demand
38Which principle of REST says that the server should respond with executable code when requested?
- AStateless Operations
- BUniform Interface
- CCacheable
- DClient-Server [Separation]
- ELayered Systems
- FCode on Demand
39What is statelessness?
- AThe application/process does NOT retain information about the user's previous interactions.
- BThe application/process retains information about the user's previous interactions.
40What is statefulness?
- AThe application/process does NOT retain information about the user's previous interactions.
- BThe application/process retains information about the user's previous interactions.
41Select the REST best practices [not principles, best practices]
- ADon't have the HTTP method in the URL [ie /getCats, /postCats, etc should all just be /cats]
- BHierarchy within URLs is that it should get more specific the further right you go in the URL. [ie https://sean.com/users/2/friends returns the friends of user 2 on sean.com]
- CQuery parameters should be used to filter the content returned by the URL [ie movies?limit=5&genre=horror only returns 5 horror movies from the movies page]
- DURLs should be versioned to maintain backwards compatibility [ie movies.com/v1/movies/1 vs movies.com/v2/movies/1]
- EDocumentation; document all API endpoints. Things like what HTTP methods are accepted, resources, payloads [response data], status codes
- FHTTP methods should be in the URL [ie /getCats, /postCats]
- GURLs should not be versioned, and instead the user should be redirected to an update page
- HThe application/process should store and return to user information when performing transactions.
42Which status code means to continue the request/ignore response if the request is done?
- A100 Continue
- B103 Early Hints
- C200 OK
- D100 Elaborate
- E102 Preload
- F201 Created
- G204 No Content
- H204 Unavailable
43Which status code tells the client to start preloading resources while the server prepares a response?
- A100 Continue
- B103 Early Hints
- C200 OK
- D100 Elaborate
- E102 Preload
- F201 Created
- G204 No Content
- H204 Unavailable
44Which status code is a blanket status code to say that the request method has been successfully executed?
- A100 Continue
- B103 Early Hints
- C200 OK
- D100 Elaborate
- E102 Preload
- F201 Created
- G204 No Content
- H204 Unavailable
45Which status code tells the client that the POST method was executed successfully?
- A100 Continue
- B103 Early Hints
- C200 OK
- D100 Elaborate
- E102 Preload
- F201 Created
- G204 No Content
- H204 Unavailable
46Which status code tells the client that the data requested doesn't exist, but nothing went wrong?
- A100 Continue
- B103 Early Hints
- C200 OK
- D100 Elaborate
- E102 Preload
- F201 Created
- G204 No Content
- H204 Unavailable
47Which status code tells the client that the URL of the requested resource has been permanently changed?
- A301 Moved Permanently
- B302 Changed Permanently
- C302 Found
- D307 Temporary Redirect
- E205 Redirect
- F308 Permanent Redirect
- G401 Unauthorized
- H403 Forbidden
- I401 Unauthenticated
- J404 Not Found
48Which status code tells the client that the URL of the requested resource has been temporarily changed?
- A301 Moved Permanently
- B302 Moved Temporarily
- C302 Found
- D307 Temporary Redirect
- E205 Redirect
- F308 Permanent Redirect
- G401 Unauthorized
- H403 Forbidden
- I401 Unauthenticated
- J404 Not Found
49Which status code tells the client that the URL of the requested resource has been temporarily changed, and the HTTP method must stay the same in the new request?
- A301 Moved Permanently
- B302 Moved Temporarily
- C302 Found
- D307 Temporary Redirect
- E205 Redirect
- F308 Permanent Redirect
- G401 Unauthorized
- H403 Forbidden
- I401 Unauthenticated
- J404 Not Found
50Which status code tells the client that the URL of the requested resource has been permanently changed, and the HTTP method must stay the same in the new request?
- A301 Moved Permanently
- B302 Changed Permanently
- C302 Found
- D307 Temporary Redirect
- E205 Redirect
- F308 Permanent Redirect
- G401 Unauthorized
- H403 Forbidden
- I401 Unauthenticated
- J404 Not Found
51Which status code tells the client that it is unauthenticated?
- A205 Redirect
- B308 Permanent Redirect
- C401 Unauthorized
- D403 Forbidden
- E401 Unauthenticated
- F404 Not Found
- G405 Method Not Allowed
- H402 Not Allowed
52Which status code tells the client that it doesn't have access rights to the requested resource?
- A205 Redirect
- B308 Permanent Redirect
- C401 Unauthorized
- D403 Forbidden
- E401 Unauthenticated
- F404 Not Found
- G405 Method Not Allowed
- H402 Not Allowed
53Which status code tells the client that the server can't find the requested resource?
- A205 Redirect
- B308 Permanent Redirect
- C401 Unauthorized
- D403 Forbidden
- E401 Unauthenticated
- F404 Not Found
- G405 Method Not Allowed
- H402 Not Allowed
54Which status code tells the client that the HTTP method is known by the server, but not allowed by the requested resource?
- A205 Redirect
- B308 Permanent Redirect
- C401 Unauthorized
- D403 Forbidden
- E401 Unauthenticated
- F404 Not Found
- G405 Method Not Allowed
- H402 Not Allowed
55Which status code tells the client that the server has encountered a situation it doesn't know how to handle? [Note: This is the most common server-side error]
- A205 Redirect
- B401 Unauthorized
- C403 Forbidden
- D404 Not Found
- E405 Method Not Allowed
- F500 Internal Server Error
- G600 Internal Server Error
- H500 External Error
- I504 Gateway Timeout
- J504 Timeout
56Which status code tells the client that the server is acting as a gateway and can't return a response in time?
- A205 Redirect
- B401 Unauthorized
- C403 Forbidden
- D404 Not Found
- E405 Method Not Allowed
- F500 Internal Server Error
- G600 Internal Server Error
- H500 External Error
- I504 Gateway Timeout
- J504 Timeout
Informações
- Descrição
- Full Stack Development Full Stack Development Quiz sobre HTTP + REST + CRUD, criado por myc elium em 19-12-2025.
- Autor
- myc elium
- Idioma
- English
- Visualizações
- 0
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz