Skip to content

Latest commit

 

History

History
316 lines (259 loc) · 6.16 KB

File metadata and controls

316 lines (259 loc) · 6.16 KB

img

Python Network 0 quizes

Question #0

In the following URL, how many parameters are in the query string?

https://www.google.com/apply?batch=89&location=SF
  • 1
  • 2
  • 3

Question #1

When you are typing https://intranet.hbtn.io in your browser, which HTTP verb is used?

  • GET
  • POST
  • DELETE
  • PUT

Question #2

What is the name of the HTTP request header used to send cookies from the client?

  • Cookie
  • Set-Cookie
  • Send-Cookie
  • Cookies

Question #3

What will be the port number requested by this URL?

afp://www.google.com/access_in_port_543
  • 548
  • 543
  • 80

Question #4

What’s the status code number for a web page that can’t be found?

  • 500
  • 404
  • 405

Question #5

Which curl option is used to set an HTTP header to a specific value?

  • -s
  • -H
  • -X

Question #6

In the following URL, what’s the resource path?

https://www.google.com/index.html

Question #7

What is the name of the HTTP response header that defines a list of available HTTP methods for this URL?

  • Verbs-Allowed
  • Verbs
  • Allow

Question #8

When an HTTP response indicates a redirection, which header defines the URL the client should be redirected to?

  • Next-Location
  • Redirect-URI
  • Location
  • Redirect
  • Redirect-Location

Question #9

In this following HTML code, which HTTP verb will be used when you will submit this form?

<FORM action="/12/update.php" method="put">
    <INPUT type="text" name="first_name" value="Bob"/>
    <INPUT type="text" name="last_name" value="Dylan"/>
    <INPUT type="submit" name="update" value="Update" />
<FORM>
  • POST
  • GET
  • UPDATE
  • PUT

Question #10

What is the curl option that defines the HTTP method used?

  • -s
  • -d
  • -X

Question #11

In the following URL, what’s the sub domain?

https://api-dev.google.com/v1/auth/new
  • /v1
  • api-dev
  • /v1/auth/new

Question #12

What is the name of the HTTP request header that defines the size (in bytes) of the message body?

  • Content-Size
  • Content-Length
  • Length
  • Size

Question #13

What is the name of the HTTP response header used to send cookies to the client from the server?

  • Cookie-Setter
  • Send-Cookies
  • Set-Cookie

Question #14

In the following URL, what’s the protocol?

http://www.google.com
  • ftp
  • http
  • https

Question #15

What is the name of the HTTP response header used to define the size, in bytes, of the body of the response?

  • Length
  • Body-Size
  • Content-Size
  • Content-Length

Question #16

What will be the port number requested by this URL?

https://www.google.com:8080/apply
  • 8888
  • 80
  • 8080

Question #17

In the following URL, how many parameters are in the query string?

https://www.google.com/apply?batch=89&location=SF&name=John%20do%20is%20the%20best%20%3D%20c%20is%20fun
  • 1
  • 3
  • 2
  • 5
  • 4

Question #18

Which HTTP request header indicates the browser used by the client sending the request?

  • I-Am
  • Origin
  • User-Agent
  • Browser-Name

Question #19

In the following URL, what’s the hostname?

http://www.google.com

Question #20

What is the curl option to follow all redirects?

  • -L
  • -s
  • -X

Question #21

In the following URL, what’s the name of the parameter in the query string?

https://www.google.com/apply?batch=89
  • 89
  • batch
  • apply

Question #22

In the following URL, what’s the resource path?

https://api.google.com/v1/auth/new
  • v1/auth/new
  • v1
  • v1/auth
  • ]v1/auth/new/index.html

Question #23

What is the curl option to disable the progression display?

  • -b
  • -s
  • -c
  • -p

Question #24

In the following URL, what’s the sub domain?

https://api.google.com/v1/auth
  • api
  • .com
  • api.google

Question #25

In the following URL, what’s the resource path?

https://www.google.com/assets/scripts/main.js
  • assets/scripts
  • assets/scripts/main.js
  • main.js

Question #26

What’s the status code number for an invalid HTTP request (server can’t understand it)?

  • 400
  • 500
  • 404

Question #27

What is the curl option to set a body key-value parameter?

  • -d
  • -b
  • -X

Question #28

What is the name of the HTTP response header used to define the formatting of the body? (This header gives details to the client on how to interpret the data received.)

  • Format
  • Type
  • Content-Format
  • Content-Type

Question #29

What is the curl option to set a cookie with a key-value pair?

  • -a
  • -d
  • -b
  • -c

Question #30

What is the curl option to save the body of the resulting response to a file?

  • -r
  • -d
  • -b
  • -o

Question #31

In this following HTML code, which HTTP verb will be used when you will submit this form?

<FORM action="/login.php" method="post">
    <INPUT type="email" name="email" placeholder="Email" required/>
    <INPUT type="password" name="password" placeholder="Password" required/>
    <INPUT type="submit" name="submit" value="Login" />
<FORM>
  • SUBMIT
  • POST
  • FORM
  • GET
  • ENTER

Question #32

What will be the port number requested by this URL?

http://www.google.com/apply
  • 443
  • 8080
  • 80
  • 22

Question #33

What is the first digit of status codes that indicate a server error?

  • 3xx
  • 1xx
  • 2xx
  • 5xx
  • 4xx

Question #34

What is the name of the HTTP response header used to define the status code of the response?

  • Code
  • Status
  • Status-Code
  • Http-Status

Question #35

What’s the status code number for a permanent redirection (moved permanently)?

  • 301
  • 201
  • 300
  • 304
  • 302