Module 1: Introduction to Web Applications & TCP/IP Application
Services
Multiple Choice Questions (MCQs) with Answers
1. What is a web application?
A) A hardware device
B) A software application accessed through a web browser
C) A programming language
D) A database
Answer: ✅ B
2. Which of the following is an example of a web application?
A) Microsoft Paint
B) Calculator
C) Gmail
D) Notepad
Answer: ✅ C
3. Which technology is primarily used to structure web pages?
A) CSS
B) JavaScript
C) HTML
D) SQL
Answer: ✅ C
4. Which technology is mainly used for styling web pages?
A) HTML
B) CSS
C) XML
D) Java
Answer: ✅ B
5. JavaScript is mainly used for:
A) Database management
B) Styling web pages
C) Adding interactivity to web pages
D) Creating operating systems
Answer: ✅ C
6. Which component stores application data?
A) Browser
B) Web Server
C) Database Server
D) Router
Answer: ✅ C
7. Which browser is commonly used to access web applications?
A) Google Chrome
B) Microsoft Word
C) Adobe Photoshop
D) VLC Media Player
Answer: ✅ A
8. Which of the following is a web server?
A) Apache
B) MS Word
C) Photoshop
D) Excel
Answer: ✅ A
9. Which of the following is NOT a web browser?
A) Chrome
B) Firefox
C) Edge
D) MySQL
Answer: ✅ D
10. Which architecture is commonly used in web applications?
A) Peer-to-Peer
B) Client-Server
C) Ring
D) Bus
Answer: ✅ B
11. The browser sends a request using which protocol?
A) FTP
B) HTTP
C) SMTP
D) DNS
Answer: ✅ B
12. Which protocol is used for secure web communication?
A) HTTP
B) HTTPS
C) FTP
D) SMTP
Answer: ✅ B
13. HTTPS uses which default port?
A) 80
B) 21
C) 443
D) 25
Answer: ✅ C
14. HTTP uses which default port?
A) 80
B) 443
C) 22
D) 53
Answer: ✅ A
15. TCP stands for:
A) Transfer Communication Process
B) Transmission Control Protocol
C) Transport Control Package
D) Transmission Computer Process
Answer: ✅ B
16. IP stands for:
A) Internet Protocol
B) Internal Program
C) Internet Package
D) Internal Protocol
Answer: ✅ A
17. TCP/IP is mainly used for:
A) Image Editing
B) Internet Communication
C) Word Processing
D) Database Backup
Answer: ✅ B
18. Which layer of TCP/IP includes HTTP?
A) Internet Layer
B) Transport Layer
C) Application Layer
D) Network Layer
Answer: ✅ C
19. Which protocol converts domain names into IP addresses?
A) FTP
B) DNS
C) SMTP
D) HTTP
Answer: ✅ B
20. DNS commonly uses which port?
A) 22
B) 25
C) 53
D) 80
Answer: ✅ C
21. Which protocol is used to transfer files?
A) FTP
B) SMTP
C) HTTP
D) DNS
Answer: ✅ A
22. FTP commonly uses which port?
A) 21
B) 22
C) 80
D) 443
Answer: ✅ A
23. SMTP is used for:
A) Receiving email
B) Sending email
C) Browsing websites
D) File sharing
Answer: ✅ B
24. SMTP commonly uses which port?
A) 21
B) 25
C) 80
D) 443
Answer: ✅ B
25. Which protocol is used to receive emails?
A) POP3
B) HTTP
C) FTP
D) DNS
Answer: ✅ A
26. IMAP is mainly used for:
A) Email synchronization
B) File transfer
C) Web browsing
D) Database access
Answer: ✅ A
27. SSH is used for:
A) Secure remote login
B) Sending emails
C) File compression
D) Image editing
Answer: ✅ A
28. SSH uses which default port?
A) 21
B) 22
C) 23
D) 25
Answer: ✅ B
29. Telnet is mainly used for:
A) Secure browsing
B) Remote login
C) Email transfer
D) Database management
Answer: ✅ B
30. Telnet uses which default port?
A) 22
B) 23
C) 25
D) 53
Answer: ✅ B
31. Which protocol is connection-oriented?
A) UDP
B) TCP
C) IP
D) DNS
Answer: ✅ B
32. Which protocol is faster but less reliable?
A) TCP
B) UDP
C) HTTP
D) FTP
Answer: ✅ B
33. Which component executes business logic?
A) Application Server
B) Browser
C) Router
D) Switch
Answer: ✅ A
34. Which database is commonly used in web applications?
A) MySQL
B) MS Paint
C) PowerPoint
D) Photoshop
Answer: ✅ A
35. Which language is mainly used to create dynamic client-side
webpages?
A) JavaScript
B) SQL
C) XML
D) CSS
Answer: ✅ A
36. Which one is a frontend technology?
A) HTML
B) MySQL
C) Oracle
D) MongoDB
Answer: ✅ A
37. Which of the following is a backend programming language?
A) PHP
B) CSS
C) HTML
D) XML
Answer: ✅ A
38. Which of the following stores user information permanently?
A) RAM
B) Database
C) Cache
D) Browser
Answer: ✅ B
39. A dynamic website usually uses:
A) HTML only
B) Database
C) Paint
D) Excel
Answer: ✅ B
40. Which protocol is responsible for delivering web pages?
A) SMTP
B) HTTP
C) POP3
D) SSH
Answer: ✅ B
41. Which of the following is NOT an advantage of web applications?
A) Platform independent
B) Easy updates
C) Requires installation on every computer
D) Accessible from anywhere
Answer: ✅ C
42. Which device receives HTTP requests from clients?
A) Printer
B) Scanner
C) Web Server
D) Keyboard
Answer: ✅ C
43. Which language is used to describe webpage structure?
A) CSS
B) HTML
C) JavaScript
D) Python
Answer: ✅ B
44. Which protocol encrypts web communication?
A) FTP
B) HTTPS
C) SMTP
D) POP3
Answer: ✅ B
45. The communication between client and server follows:
A) Request–Response Model
B) Circular Model
C) Broadcast Model
D) Ring Model
Answer: ✅ A
46. Which of the following is NOT part of the TCP/IP protocol suite?
A) HTTP
B) SMTP
C) DNS
D) BIOS
Answer: ✅ D
47. Which protocol resolves website names into IP addresses?
A) DNS
B) FTP
C) SMTP
D) POP3
Answer: ✅ A
48. Which layer of the TCP/IP model handles reliable data delivery?
A) Application Layer
B) Transport Layer
C) Internet Layer
D) Network Access Layer
Answer: ✅ B
49. Which of the following is an advantage of TCP?
A) No error checking
B) Reliable communication
C) Faster than UDP
D) No acknowledgments
Answer: ✅ B
50. Which protocol suite is the foundation of the Internet?
A) OSI
B) TCP/IP
C) Bluetooth
D) NFC
Answer: ✅ B
Module 1: Introduction to Web Applications & TCP/IP Application
Services
Learning Outcomes
After completing this module, students will be able to:
Understand what a web application is.
Differentiate between websites and web applications.
Explain the architecture of web applications.
Understand the TCP/IP protocol suite.
Describe common TCP/IP application services.
Explain how web browsers communicate with web servers.
1. Introduction to Web Applications
What is a Web Application?
A web application (Web App) is a software program that runs on a web
server and is accessed through a web browser over the Internet or an
intranet.
Unlike desktop applications, users do not need to install software on their
computers. They only need a web browser and an internet connection.
Definition
A web application is an interactive software application that uses web
technologies to provide services through a web browser.
Examples of Web Applications
Gmail
Facebook
YouTube
WhatsApp Web
Google Docs
Amazon
Online Banking Systems
University Student Portal
Learning Management Systems (LMS)
Characteristics of Web Applications
Platform independent
Accessible from anywhere
Centralized data storage
Easy to update
Multi-user support
Browser-based interface
Secure authentication
Dynamic content generation
Components of a Web Application
1. Client (Frontend)
The client is the user's web browser.
Examples:
Google Chrome
Firefox
Microsoft Edge
Safari
Frontend technologies:
HTML
CSS
JavaScript
2. Web Server
The web server receives requests from users and sends responses.
Examples:
Apache
Nginx
Microsoft IIS
Functions:
Handles HTTP requests
Stores website files
Executes server-side programs
Sends webpages to browsers
3. Application Server
Processes business logic.
Examples:
[Link]
PHP
[Link]
Java Spring Boot
Django
Responsibilities:
Authentication
Payment processing
User management
Data processing
4. Database Server
Stores application data.
Examples:
MySQL
PostgreSQL
SQL Server
Oracle
MongoDB
Stores:
User information
Orders
Products
Messages
Reports
Web Application Architecture
User
│
▼
Web Browser
HTTP Request
▼
Web Server
Application Server
Database
HTTP Response
▼
Web Browser
Static vs Dynamic Websites
Dynamic Web
Static Website
Application
Fixed content Dynamic content
HTML only Uses databases
No login Login supported
No user
Interactive
interaction
Easy to create More complex
Dynamic Web
Static Website
Application
Example:
Example: Facebook
Portfolio
Advantages of Web Applications
No installation required
Easy maintenance
Automatic updates
Cross-platform compatibility
Remote accessibility
Centralized database
Lower maintenance cost
Supports multiple users
Disadvantages
Internet connection required
Browser compatibility issues
Security risks
Slower than desktop applications
Server downtime affects users
Life Cycle of a Web Request
Step 1
User enters:
[Link]
↓
Step 2
Browser sends HTTP Request
Step 3
Web server receives request
Step 4
Application processes request
Step 5
Database returns data
Step 6
Server generates webpage
Step 7
Browser displays webpage
Client-Server Model
Client
(Web Browser)
│ HTTP Request
▼
Server
(Web Server)
│
│ HTTP Response
▼
Client
The client requests information, and the server processes the request and
returns the response.
Technologies Used in Web Applications
Frontend
HTML5
CSS3
JavaScript
Bootstrap
React
Angular
[Link]
Backend
PHP
Java
Python
C#
[Link]
Databases
MySQL
PostgreSQL
Oracle
SQL Server
MongoDB
2. TCP/IP Application Services
What is TCP/IP?
TCP/IP (Transmission Control Protocol/Internet Protocol) is the
standard communication protocol suite used to connect devices over the
Internet.
It enables reliable communication between computers by defining how data
is packaged, transmitted, routed, and received.
TCP/IP Layers
Layer Protocols Function
HTTP, HTTPS, FTP, SMTP,
Application User services
DNS
Reliable or fast data
Transport TCP, UDP
delivery
Internet IP, ICMP Addressing and routing
Network
Ethernet, Wi-Fi Physical transmission
Access
TCP/IP Communication Process
Application Layer
Transport Layer
(TCP/UDP)
Internet Layer
(IP)
Network Layer
(Ethernet/Wi-Fi)
Internet
Common TCP/IP Application Services
1. HTTP (Hypertext Transfer Protocol)
Purpose:
Transfers web pages from server to browser.
Port:
80
Example:
[Link]
2. HTTPS (Secure HTTP)
Purpose:
Secure communication using SSL/TLS encryption.
Port:
443
Benefits:
Data encryption
Authentication
Integrity
3. FTP (File Transfer Protocol)
Purpose:
Upload and download files.
Port:
21
Uses:
Website uploading
File sharing
4. SMTP (Simple Mail Transfer Protocol)
Purpose:
Sends email.
Port:
25
Example:
Gmail sending mail
5. POP3
Purpose:
Receives emails by downloading them to the client.
Port:
110
6. IMAP
Purpose:
Synchronizes emails between server and multiple devices.
Port:
143
7. DNS (Domain Name System)
Purpose:
Converts domain names into IP addresses.
Example:
[Link]
[Link]
Port:
53
8. Telnet
Purpose:
Remote login (not secure).
Port:
23
9. SSH (Secure Shell)
Purpose:
Secure remote login and server administration.
Port:
22
Difference Between TCP and UDP
TCP UDP
Connection-oriented Connectionless
TCP UDP
Reliable Less reliable
Error checking Minimal error checking
Slower Faster
Used for HTTP, HTTPS, Used for Streaming, Gaming,
FTP VoIP
HTTP Request–Response Example
User opens
[Link]
Browser sends:
HTTP GET /
Server processes request
Server sends:
HTTP/1.1 200 OK
Browser displays webpage.
Advantages of TCP/IP
Reliable communication
Global standard
Scalable
Interoperable across devices
Supports multiple services
Fault tolerant
Widely adopted