Module 1.5 - What is a URL Flashcards

1
Q

What is a URL?

A

A URL (Uniform Resource Locator) is a string of text that specifies the location of a resource on the internet.

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

What are the parts of a URL?

A

A URL is composed of the protocol, the server address (domain name or IP), and the path of the document on the server.

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

What is the purpose of the protocol in a URL?

A

The protocol in a URL determines the type of communication that should be used to access the resource. For example, HTTP or HTTPS.

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

What is the server address in a URL?

A

The server address in a URL is either a domain name or an IP address that points to the location of the resource on the internet.

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

What is the document path in a URL?

A

The document path in a URL represents the specific location of the resource within the server’s root path.

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

What’s the difference between a document path and and endpoint in a URL?

A

A document path in a URL refers to the location of a specific file or resource on the web server. It’s the part of the URL that comes after the domain name and specifies the location of a specific page, file, or resource on the server.

An endpoint, on the other hand, is a unique URL for an API or web service that specifies the location of a specific resource or operation that the API can perform. Endpoints are typically used for sending and receiving data from an API, whereas document paths are used for accessing static content on a web server.

In other words, a document path refers to a static resource, while an endpoint refers to a dynamic resource or operation.

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