These are the complete exercise solutions for Unit 3, Introduction to Computer Networks, from the Punjab Board 9th Class Computer Science & Entrepreneurship textbook (PECTAA). They are written by the computer science teachers of Learn with Nexora for the Annual Examination 2027 of BISE Rawalpindi, Lahore and all other Punjab boards, and follow the new ALP Smart Syllabus 2026-27.
All answers follow the wording of the textbook. MCQs show the correct option, short questions are written in the 2-mark style of the PECTAA model paper, and long questions are written in the detailed 8-mark style. Question numbers match the book exercise so you can find each one quickly.
| Unit | 3: Introduction to Computer Networks |
|---|---|
| Class | 9th Class (Matric Part I), Punjab boards |
| MCQs answered | 9 |
| Short questions answered | 10 |
| Long questions answered | 6 |
| ALP 2027 deletions | None |
Good news: nothing has been deleted from Unit 3 in the ALP Smart Syllabus 2026-27, so every exercise question below is part of the 2027 board exam. Prepare the whole unit.
Unit 3 MCQs with answers
1. The primary objective of computer networks is:
(a) Increase computational power (b) Enable resource sharing and data communication (c) Enhance graphic capabilities (d) Improve software development
Answer: (b) Enable resource sharing and data communication
2. Which device is used to connect multiple networks and direct data packets between them?
(a) Switch (b) Hub (c) Router (d) Modem
Answer: (c) Router
3. Which layer of the OSI model is responsible for node-to-node data transfer and error detection?
(a) Physical Layer (b) Data Link Layer (c) Network Layer (d) Transport Layer
Answer: (b) Data Link Layer
4. The function of the Domain Name System (DNS) is to:
(a) Assign IP addresses dynamically (b) Translate domain names to IP addresses (c) Secure data communication (d) Monitor network traffic
Answer: (b) Translate domain names to IP addresses
5. Which method of data transmission uses a dedicated communication path?
(a) Packet Switching (b) Circuit Switching (c) Full-Duplex (d) Half-Duplex
Answer: (b) Circuit Switching
6. Which protocol is used for reliable data transfer in the TCP/IP model?
(a) HTTP (b) FTP (c) TCP (d) UDP
Answer: (c) TCP
7. The main purpose of a firewall in network security is to:
(a) Convert data into a secure format (b) Monitor and control network traffic (c) Assign IP addresses (d) Translate domain names
Answer: (b) Monitor and control network traffic
8. Which network topology connects all devices to a central hub?
(a) Ring (b) Mesh (c) Bus (d) Star
Answer: (d) Star
9. What is a key benefit of using computer networks in businesses?
(a) Increase computational power (b) Enable resource sharing and efficient communication (c) Enhance graphic capabilities (d) Improve software development
Answer: (b) Enable resource sharing and efficient communication
Unit 3 short questions with answers
Q.1 Define data communication.
Ans. Data communication involves the exchange of data between a sender and a receiver through a communication medium.
Q.2 Enlist its key components of data communications.
Ans. Data communication comprises five basic components: (1) Sender, (2) Receiver, (3) Message, (4) Protocol and (5) Medium.
Q.3 Write the role of routers in a computer network.
Ans. A router is a networking device that interconnects networks and directs data packets between different networks. Data sent on the Internet is divided into small packets, and each packet contains part of the data and the address of the destination. The main job of a router is to find the best path for each data packet to deliver it to its destination.
Q.4 What are the main functions of the Network Layer in the OSI model?
Ans. The Network Layer (Layer 3) is responsible for data transfer between different networks. It determines the best path for data to travel from the source to the destination, and it uses IP addresses to route data between networks.
Q.5 What is the purpose of the Dynamic Host Configuration Protocol (DHCP)?
Ans. DHCP automatically assigns IP addresses to devices on a network, simplifying network management. For example, when a device connects to a Wi-Fi network, DHCP assigns it an IP address.
Q.6 Differentiate between TCP and UDP.
| TCP | UDP |
|---|---|
| Transmission Control Protocol. | User Datagram Protocol. |
| Ensures reliable data transfer. | Provides faster, but less reliable, data transfer. |
Q.7 Explain the importance of encryption in network security.
Ans. Encryption protects data by converting it into a secure format. It helps in data protection, i.e. ensuring that sensitive information is not accessed or altered by unauthorized users, and in maintaining privacy by safeguarding personal and confidential information from being compromised.
Q.8 Define star topology?
Ans. In a star topology each node in the network communicates with the others via a central switch or hub. The hub works as a data flow repeater. For example, a school principal’s office is connected to all classrooms through intercoms: the principal’s office is the hub and the classrooms are the nodes.
Q.9 How does firewall contribute to network security?
Ans. A firewall monitors and controls incoming and outgoing network traffic. In this way it helps to prevent unauthorized access to the network and defends against malicious attacks. A combination of firewalls, encryption and antivirus software provides robust network security.
Q.10 What is difference between Half Duplex and Full Duplex communication?
| Basis | Half-Duplex | Full-Duplex |
|---|---|---|
| Direction of data | Data transmission can occur in both directions, but not simultaneously. | Data transmission can occur in both directions simultaneously. |
| Waiting | One device must wait for the other to finish transmitting before it can start. | Both devices may transmit and receive data at the same time. |
| Example | Walkie-talkie (the first telephones were half-duplex). | Telephone conversation; both people can talk and listen at the same time. |
Unit 3 long questions with answers
Q.1 Discuss the objectives of computer networks?
A computer network is a system of linked devices and computers that may exchange data and operate together. The primary objective of a computer network is to enable resource sharing, data communication and collaboration.
1. Resource Sharing
Computer networks allow devices to share resources, such as printers and storage, reducing costs and improving efficiency. Example: In an office network, multiple computers can share a single printer, reducing the need for multiple printers.
2. Data Communication
Networks facilitate data transfer, enabling communication through emails, instant messaging and video conferencing. Example: Employees in different locations can collaborate through video conferencing tools like Zoom or Microsoft Teams.
3. Connectivity and Collaboration
Networks connect devices, allowing for remote access and collaboration, improving productivity and flexibility. Example: A team can work on a shared document in real time using cloud-based services like Google Drive.
Q.2 In a Simplex communication system, assume data is transmitted at a rate of 500 bits per second (bps). Compute the time to transmit a message if: a) it is of 10 kilobits. b) it is of 10 kilobytes.
Formula: Time = Size of message (in bits) Γ· Data rate (in bits per second)
Given: Data rate = 500 bps. Using the book’s data-size units: 1 Byte = 8 bits and 1 Kilobyte (KB) = 1024 Bytes.
a) Message of 10 kilobits
Size = 10 Γ 1024 = 10,240 bits
Time = 10,240 Γ· 500 = 20.48 seconds
b) Message of 10 kilobytes
Size = 10 Γ 1024 = 10,240 bytes = 10,240 Γ 8 = 81,920 bits
Time = 81,920 Γ· 500 = 163.84 seconds
Note: If 1 kilo is taken as 1000, the answers are 10,000 Γ· 500 = 20 seconds for part (a) and 80,000 Γ· 500 = 160 seconds for part (b). In simplex mode data flows in one direction only, so the time is simply the message size divided by the rate.
Q.3 What is meant by protocols in data communication. Explain its different types.
Protocols are sets of rules that govern data communication. A protocol is one of the five basic components of data communication (sender, receiver, message, protocol and medium). Common protocols include TCP/IP, HTTP, FTP and SMTP.
Types of Protocols
- HTTP (HyperText Transfer Protocol): used for transferring web pages over the Internet.
- FTP (File Transfer Protocol) and SMTP (Simple Mail Transfer Protocol): common protocols used for file transfer and e-mail respectively.
- DNS (Domain Name System): translates domain names to IP addresses, making it easier for users to access websites. Example: when you type www.example.com in a browser, DNS translates it to the corresponding IP address.
- DHCP (Dynamic Host Configuration Protocol): automatically assigns IP addresses to devices on a network, simplifying network management. Example: when a device connects to a Wi-Fi network, DHCP assigns it an IP address.
- TCP/IP (Transmission Control Protocol/Internet Protocol): the fundamental suite of protocols for Internet communication. It includes: Transmission Control Protocol (TCP), which ensures reliable data transfer; Internet Protocol (IP), which handles addressing and routing of data packets; and User Datagram Protocol (UDP), which provides faster, but less reliable, data transfer.
Q.4 Describe real-world applications of computer networks in business, education.
Business
In business, networks enable efficient communication, resource sharing and data exchange. An Intranet is a private network inside a company that uses Internet technology (like websites); only people within the organization can access it. Example: Companies use intranets to share information and resources securely within the organization.
Education
Educational institutions use networks to provide online learning platforms, virtual classrooms and access to educational resources. Example: Universities use Learning Management Systems (LMS) like Blackboard and Moodle to deliver course content and assessments.
Q.5 What is network topology? Explain any two with diagrams.
Network topologies are methods used to define the arrangement of different devices in a computer network, where each device is called a node. The reliability and performance of a network are impacted by the way its devices are linked.
1. Bus Topology
In a Bus topology, all devices share a single communication line called a bus. Each device is connected to this central cable. Bus topology is easy to set up, but if the main cable fails, the whole network goes down.

2. Star Topology
In a star topology each node in the network communicates with the others via a central switch or hub. The hub works as a data flow repeater. Example: a school principal’s office connected to all classrooms through intercoms; the principal’s office is the hub and the classrooms are the nodes. In a star topology, if the hub/switch stops working the whole network goes down.

Q.6 Define OSI network model, explain its any three layers.
The Open Systems Interconnection (OSI) Model is a framework used to understand how different networking protocols interact. It has 7 layers, each with a specific function: Physical, Data Link, Network, Transport, Session, Presentation and Application. (The book asks for any three layers; since the 2027 model paper asks for any four layers, four layers are explained below.)

Layer 1: Physical Layer
The Physical Layer is liable for the actual connection between devices. The focus here is the process of sending unprocessed data bits via a physical medium. Example: the hardware that connects computers, like network interface cables, repeaters, hubs and connectors.
Layer 2: Data Link Layer
Error detection and correction, as well as node-to-node data transport, are handled by the Data Link Layer. It ensures error-free data transmission from the Physical Layer. Example: traffic lights at intersections, which manage the flow of cars (data) and prevent collisions.
Layer 3: Network Layer
The Network Layer is responsible for data transfer between different networks. It determines the best path for data to travel from the source to the destination, and uses IP addresses to route data between networks. Example: a GPS system finding the best route from home to school.
Layer 4: Transport Layer
The Transport Layer ensures that data is transferred from the source system to the destination system. It manages data flow control and error checking, and uses protocols like TCP to ensure reliable data transfer. Example: a delivery service that ensures your package arrives safely and on time.
Download the PDFs
The same answers for all units are available as three printable PDFs:
- All units: MCQs (PDF, 9 pages)
- All units: Short Questions (PDF, 12 pages)
- All units: Long Questions (PDF, 22 pages)
More for 9th Class Computer Science
- All units: 9th Class Computer Science exercise solutions 2027
- 9th Class Computer Science pairing scheme, model paper and official ALP list
- 9th Class Computer Science & Entrepreneurship textbook PDF
The exercise questions are from the PECTAA Computer Science & Entrepreneurship Grade 9 textbook; the deleted list follows the PECTAA Smart Syllabus 2026-27. Please confirm all dates and figures on the official website: pectaa.edu.pk
Need help with 9th Class Computer Science? Join our live online classes for Matric (Punjab and Federal Board). Book a free demo class.

Ask a question about this topic