Study resource

Read at your pace, then save it for later.

Unit 1: Web Technology Fundamentals - Question Set

Section A — 1 Mark Questions

1. Write the full form of URL. [1 Mark]

Answer: URL stands for Uniform Resource Locator. It is the unique address used to locate a resource on the Internet.

2. Write two popular web browsers. [1 Mark]

Answer: Two popular web browsers are:

  1. Google Chrome
  2. Mozilla Firefox

3. What is a web server? [1 Mark]

Answer: A web server is a computer or software that stores, processes, and delivers web pages and other resources to clients (web browsers) over the Internet using HTTP or HTTPS.

4. Name the domain which is used for academic purposes. [1 Mark]

Answer: The .edu domain is commonly used by educational institutions for academic purposes.

5. Write the general format of IP Address. [1 Mark]

Answer: The general format of an IPv4 address consists of four numbers (octets) separated by dots, with each number ranging from 0 to 255.

Example: 192.168.1.1

Section B — 2 Mark Questions

1. Difference between HTTP and HTTPS. [2 Marks]

Answer: HTTP and HTTPS are protocols used for communication between web browsers and web servers. The main differences are:

HTTP HTTPS
HTTP stands for Hypertext Transfer Protocol. HTTPS stands for Hypertext Transfer Protocol Secure.
It transfers data without encryption. It encrypts data using TLS (Transport Layer Security).
It generally uses port 80. It generally uses port 443.
It provides less security. It provides secure communication and helps protect sensitive information.

Example: http://example.com uses HTTP, whereas https://example.com uses HTTPS.

2. What are static and dynamic web pages? Give example. [2 Marks]

Answer:

Static Web Pages: Static web pages display fixed content to every visitor. Their content remains the same unless the developer manually changes the HTML or other files.

Example: A simple personal portfolio page or an informational webpage.

Dynamic Web Pages: Dynamic web pages display content that can change according to user input, database information, time, or other conditions. They are commonly generated using server-side technologies and databases.

Example: Facebook, Amazon, and online banking websites.

Static Web Pages Dynamic Web Pages
Content remains fixed until manually updated. Content can change automatically.
Usually simpler to develop. Usually require more complex programming.
May not require server-side processing. Often use server-side processing and databases.

Section C — 8 Mark Questions

1. Explain the architecture of WWW. [8 Marks]

Answer:

Introduction

The World Wide Web (WWW) is a system of interconnected web pages and other resources that can be accessed through the Internet. It was invented by Tim Berners-Lee in 1989. The WWW follows a client-server architecture in which web browsers request information from web servers, and the servers respond with the requested resources.

Main Components of WWW Architecture

The architecture of the World Wide Web consists of the following major components:

  1. Web Client (Web Browser):

    A web client is an application used to access web pages and other resources on the Internet. It sends requests to web servers and displays the received information to users.

    Examples: Google Chrome, Mozilla Firefox, and Microsoft Edge.

  2. Web Server:

    A web server is a computer or software that stores website files and responds to requests from web clients. It processes HTTP or HTTPS requests and sends the requested web pages or resources to the browser.

    Examples: Apache HTTP Server, Nginx, and Microsoft IIS.

  3. HTTP/HTTPS Protocol:

    HTTP (Hypertext Transfer Protocol) is the communication protocol used to transfer web resources between clients and servers. HTTPS is its secure version, which uses TLS encryption to protect data during communication.

  4. URL (Uniform Resource Locator):

    A URL is the address used to identify and locate a resource on the Web. It specifies the protocol and the location of the requested resource.

    Example: https://www.example.com/index.html

  5. DNS (Domain Name System):

    DNS translates human-readable domain names into IP addresses so that browsers can locate the correct web servers.

    Example: It helps translate www.google.com into its corresponding IP address.

  6. HTML (Hypertext Markup Language):

    HTML is the standard markup language used to create and structure web pages. It defines elements such as headings, paragraphs, images, links, and tables.

Working of WWW Architecture

The World Wide Web works through a series of steps:

  1. User Request: The user enters a website URL into a web browser.
  2. DNS Lookup: The browser uses DNS to find the IP address associated with the domain name.
  3. Connection Establishment: The browser establishes a connection with the web server using the appropriate network protocols.
  4. HTTP/HTTPS Request: The browser sends an HTTP or HTTPS request to the web server.
  5. Server Processing: The web server processes the request and retrieves the required files or generates the requested content.
  6. Server Response: The server sends the requested information, along with an appropriate HTTP status code, to the browser.
  7. Displaying the Web Page: The browser interprets HTML, CSS, JavaScript, and other resources to display the web page to the user.

Diagram of WWW Architecture

          USER
            |
            v
     +--------------+
     | Web Browser  |
     | (Web Client) |
     +--------------+
            |
            | URL Request
            v
     +--------------+
     |     DNS      |
     | Domain Name  |
     | Resolution   |
     +--------------+
            |
            | IP Address
            v
     +--------------+
     | HTTP / HTTPS |
     |  Protocol    |
     +--------------+
            |
            | Request
            v
     +--------------+
     |  Web Server  |
     +--------------+
            |
            | Response
            v
     +--------------+
     | Web Browser  |
     +--------------+
            |
            v
     DISPLAY WEB PAGE

Advantages of WWW

  • Provides easy access to information from anywhere in the world.
  • Supports multimedia content such as text, images, audio, and video.
  • Allows communication and information sharing.
  • Supports online services such as education, shopping, banking, and entertainment.
  • Provides hyperlinks to connect different web pages and resources.

Conclusion

The World Wide Web uses a client-server architecture to provide access to information over the Internet. Components such as web browsers, web servers, URLs, DNS, and HTTP/HTTPS work together to make web communication possible and efficient.

2. Write short note on: [8 Marks]

i) DNS and ii) SMTP

Answer:

i) DNS (Domain Name System)

Definition: DNS stands for Domain Name System. It is a hierarchical and distributed naming system that translates human-readable domain names into their corresponding IP addresses. It makes it easier for users to access websites without remembering numerical IP addresses.

Functions of DNS

  1. Domain Name Resolution: Converts domain names such as www.google.com into their corresponding IP addresses.
  2. Easy Access: Allows users to access websites using easy-to-remember domain names instead of numerical IP addresses.
  3. Distributed Database: Stores domain information across multiple DNS servers around the world.
  4. Mail Server Identification: Uses MX (Mail Exchange) records to identify mail servers responsible for receiving emails for a domain.
  5. Load Distribution: DNS can return multiple IP addresses to distribute requests among different servers.

Working of DNS

When a user enters a website address in a browser, DNS works in the following way:

  1. The user enters a domain name, such as www.example.com.
  2. The browser or operating system checks its DNS cache for an existing record.
  3. If the address is not available in the cache, a DNS resolver searches for the required information.
  4. The resolver may contact root, top-level domain (TLD), and authoritative DNS servers to find the correct record.
  5. The DNS resolver returns the corresponding IP address to the user's device.
  6. The browser uses that IP address to connect to the web server.

Diagram of DNS Working

       User enters domain name
                |
                v
          DNS Resolver
                |
                v
          Root Server
                |
                v
           TLD Server
                |
                v
       Authoritative Server
                |
                v
        Returns IP Address
                |
                v
        Connects to Website

Types of DNS Records

  • A Record: Maps a domain name to an IPv4 address.
  • AAAA Record: Maps a domain name to an IPv6 address.
  • CNAME Record: Maps one domain name to another domain name.
  • MX Record: Specifies the mail servers responsible for receiving emails for a domain.
  • NS Record: Identifies the authoritative name servers for a domain.

Example: When a user enters www.google.com in a browser, DNS helps find the IP address of the server hosting Google's website.

ii) SMTP (Simple Mail Transfer Protocol)

Definition: SMTP stands for Simple Mail Transfer Protocol. It is a standard application-layer protocol used to send and relay electronic mail (email) from a sender's email client to a mail server and between mail servers.

Functions of SMTP

  1. Sending Emails: SMTP is used to send outgoing emails from an email client to a mail server.
  2. Mail Transfer: It transfers emails between different mail servers over the Internet.
  3. Message Delivery: It helps route outgoing email messages towards the recipient's mail server.
  4. Communication: It enables reliable email communication between users across different networks.

Working of SMTP

SMTP works through the following steps:

  1. The sender writes an email using an email application.
  2. The email application connects to the sender's outgoing mail server using SMTP.
  3. The sender's mail server identifies the recipient's mail server, usually with the help of DNS MX records.
  4. The email is transferred to the recipient's mail server using SMTP.
  5. The recipient retrieves the email using an email access protocol such as POP3 or IMAP.

Diagram of SMTP Working

       Sender
          |
          v
    Email Client
          |
          | SMTP
          v
   Sender's Mail Server
          |
          | SMTP
          v
 Recipient's Mail Server
          |
          | POP3 / IMAP
          v
    Recipient's Email
         Client

Common SMTP Ports

Port Number Purpose
25 Traditionally used for mail server-to-server transfer.
587 Commonly used for email submission with STARTTLS.
465 Commonly used for email submission with implicit TLS.

Advantages of SMTP

  • Provides a standard method for sending emails over the Internet.
  • Supports communication between different email systems.
  • Allows emails to be transferred between mail servers.
  • Supports authentication and encryption when configured appropriately.

Conclusion

DNS and SMTP are important Internet protocols that perform different functions. DNS translates domain names into IP addresses, while SMTP is responsible for sending and transferring emails. Both protocols help make Internet communication easier and more efficient.


xxx

Did this help you understand better?

Your feedback improves the quality of this resource for everyone.