Skip to content

Latest commit

 

History

History
79 lines (59 loc) · 2.3 KB

File metadata and controls

79 lines (59 loc) · 2.3 KB
load_script_js exercise_path
quiz.js
user/week01/exercises/day02/Absolute_vs_Relative_URLs

Absolute vs Relative URLs

Question 1: What is a URL?

  • A) Uniform Resource Locator
  • B) Universal Rendering Language
  • C) United Routing Link
  • D) User-friendly Link

Question 2: Which of the following statements best describes an absolute URL?

  • A) A URL that is only accessible from specific devices.
  • B) A URL that includes the full path to a resource, including the protocol and domain.
  • C) A URL that changes its path dynamically based on user input.
  • D) A URL that points to local resources within the same website.

Question 3: In an absolute URL like "https://www.example.com/page.html," what does "https://" represent?

  • A) The specific file name.
  • B) The server's IP address.
  • C) The protocol or scheme.
  • D) The anchor tag for linking within the page.

Question 4: Which scenario is most suitable for using a relative URL?

  • A) Linking to an external website.
  • B) Linking to a resource within the same website.
  • C) Linking to a secure server.
  • D) Linking to a resource on a different domain.

Question 5: What is the advantage of using relative URLs over absolute URLs?

  • A) They are more secure.
  • B) They load faster on modern browsers.
  • C) They are easier to remember and manage.
  • D) They are compatible with all browsers.

Question 6: In a URL like "/images/pic.jpg," what does the initial "/" symbol indicate?

  • A) The file extension.
  • B) The root directory of the website.
  • C) A query parameter.
  • D) The file's MIME type.

Question 7: If you're on the page "http://www.example.com/subfolder/page.html," and you want to link to "http://www.example.com/otherpage.html," which type of URL would you use?

  • A) Absolute URL
  • B) Relative URL

Question 8: Which type of URL tends to break if the domain structure changes?

  • A) Absolute URL
  • B) Relative URL

Question 9: When might it be necessary to use an absolute URL instead of a relative URL?

  • A) When linking within the same website.
  • B) When linking to external resources like images on another domain.
  • C) When creating anchor tags.
  • D) When creating a sitemap.

Question 10: Which type of URL typically requires more characters to represent?

  • A) Absolute URL
  • B) Relative URL