9th Class Computer Science Unit 6 Introduction to Computer Networks – Notes, MCQs and Questions (New Syllabus)

Last updated: 4 December 2026 · Punjab Board 9th Class Computer Science and Entrepreneurship (new syllabus 2025-26) · Unit 6

Easy, exam-focused notes for Unit 6: Introduction to Computer Networks of the new Punjab Board 9th class Computer Science book. Short answers are written to fit the board e-sheet answer space. All exercise MCQs are checked against the textbook answer key.

In this unit

  1. Network as a system and its objectives
  2. Data communication components
  3. Networking devices: switch, router, access point
  4. Network topologies
  5. Transmission modes
  6. OSI model (7 layers)
  7. IPv4, IPv6, protocols, DNS and DHCP
  8. Network security
  9. Types of networks: PAN, LAN, MAN, WAN, CAN
  10. Exercise: MCQs, short and long questions
  11. FAQs

6.1 Network as a system

A computer network is a system of linked computers and devices that exchange data and work together. The Internet is the largest network of all.

  • Nodes: devices on the network (computers, phones, printers).
  • Links: wired (Ethernet cable) or wireless (Wi-Fi) connections.
  • Switches: connect nodes inside one network.
  • Routers: connect different networks and direct packets between them.

Packet switching: data is broken into small packets; each carries the destination address and may take a different route, then they are reassembled at the end (like passengers flying in groups on different flights to one city). Circuit switching: a dedicated path is set up for the whole communication, like an old telephone call.

ObjectiveExample
Resource sharingMany office computers share one printer
Data communicationEmail, messaging, Zoom or Teams calls
Connectivity and collaborationA team edits one Google Drive document together

6.2 Components of data communication

ComponentMeaningExample
SenderDevice that sends dataComputer sending an email
ReceiverDevice that receives dataSmartphone receiving it
MessageThe data itselfText of the email
ProtocolRules for communicationHTTP for web pages
MediumPath the data travels onEthernet cable or Wi-Fi

6.3 Networking devices

  • Switch – connects devices within a LAN. Works at OSI Layer 2 (Data Link) using MAC addresses; sends each packet only to the destination device (first time it broadcasts, then it learns addresses). Like a smart traffic conductor.
  • Hub – an older device that broadcasts data to all connected devices.
  • Router – connects different networks and finds the best path for each packet using a routing table. A home router often includes a switch and wireless access point. (A mobile Wi-Fi router uses a SIM – Subscriber Identity Module.)
  • Access Point (AP) – lets wireless devices join a wired network using radio waves; place it centrally for best coverage.

6.4 Network topologies

TopologyLayoutAdvantageDisadvantageAnalogy
BusAll devices on one main cable (bus)Easy and cheap to set upIf the main cable fails, the whole network failsClassroom chalkboard
StarAll devices connect to a central switch/hubEasy to add devices; one cable fault affects only one deviceIf the central device fails, all stopPrincipal’s office with intercoms
RingEach device linked to two others in a circle; data goes one wayHandles high trafficOne broken link affects the whole ring (a two-way ring helps)Relay race
MeshEvery device connected to every otherVery reliable; data can be reroutedExpensive, many cablesCity where every house has a road to every other

6.5 Transmission modes

ModeDirectionExample
SimplexOne direction onlyKeyboard to computer
Half-duplexBoth directions, but one at a timeWalkie-talkie
Full-duplexBoth directions at the same timeTelephone call, video call

6.6 OSI model (7 layers)

LayerJobExample / analogy
7 ApplicationNetwork services for users: email, web, file transferWaiter taking your order
6 PresentationTranslates, formats, encrypts and compresses dataA translator of a book
5 SessionStarts, maintains and ends sessionsSetting up and ending a phone call
4 TransportProcess-to-process delivery, flow control, error checking (TCP)Delivery service ensuring the parcel arrives
3 NetworkRouting between networks using IP addresses; best pathGPS finding the best route
2 Data LinkNode-to-node transfer, error detection and correction (MAC)Traffic lights preventing collisions
1 PhysicalSends raw bits through cables, connectors, signalsCables, hubs, repeaters

Memory trick (7 → 1): All People Seem To Need Data Processing.

6.7–6.8 IP addresses, protocols, DNS and DHCP

IPv4IPv6
Size32 bits (4 bytes)128 bits
Number of addresses2³² = 4,294,967,296 (~4.3 billion)Almost unlimited
FormatFour decimal numbers 0–255, e.g. 192.168.1.1Eight hex groups, e.g. 2001:0000:130F:0000:0000:0900:876A:130B
WhyMost widely used todayMade because IPv4 addresses are running out
ProtocolPurpose
TCPReliable, ordered data transfer
IPAddressing and routing of packets
UDPFaster but less reliable (no delivery check)
HTTPTransfers web pages
FTPTransfers files
SMTPSends email
DNSTranslates domain names (www.example.com) into IP addresses
DHCPAutomatically gives IP addresses to devices joining a network

Encapsulation: as data moves down the layers, each layer wraps it with its own protocol information (headers), like putting a letter in an envelope and then in a parcel.

6.9 Network security

  • Why: data protection, preventing attacks, privacy and availability for authorised users.
  • Firewall: monitors and controls incoming and outgoing traffic by security rules – a checkpoint between trusted and untrusted networks.
  • Encryption: turns data into a secret form (ciphertext) that only someone with the key can read; decryption turns it back. Shift cipher with key 3: “Hello” → “Khoor”.
  • Passwords and authentication allow only authorised users. Antivirus detects and removes malware.
  • Threats: malware (viruses, worms, ransomware), phishing (fake emails/sites), Denial of Service (flooding a network with traffic), man-in-the-middle (intercepting messages).

6.10 Types of networks

TypeAreaExample
PAN – Personal Area NetworkA few metresPhone + Bluetooth headset
LAN – Local Area NetworkHome, school or office buildingSchool computer lab
CAN – Campus Area NetworkUniversity or business campus (several LANs)All departments of a university
MAN – Metropolitan Area NetworkA city (up to ~50 km)University branches across a city
WAN – Wide Area NetworkCountries and continentsThe Internet; a company’s offices worldwide

Applications: business (intranets, sharing resources), education (online learning, LMS like Moodle), healthcare (Electronic Health Records, telemedicine). A VPN secures your connection on public networks.

Unit 6 exercise (solved)

A. Multiple choice questions

1. What is the primary objective of computer networks?
(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 – Networks exist to share and communicate.

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 – A switch works inside one network.

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 – Layer 2.

4. What is the function of the Domain Name System (DNS)?
(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 – Assigning IPs is DHCP.

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 – Circuit switching reserves one path.

6. What is encapsulation in the context of network communication?
(a) Converting data into a secure format   (b) Wrapping data with protocol information   (c) Monitoring network traffic   (d) Translating domain names to IP addresses
Answer: (b) Wrapping data with protocol information – Each layer adds a header.

7. Which protocol is used for reliable data transfer in the TCP/IP model?
(a) HTTP   (b) FTP   (c) TCP   (d) UDP
Answer: (c) TCP – UDP is fast but not reliable.

8. What is the main purpose of a firewall in network security?
(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 – Converting data is encryption.

9. Which network topology connects all devices to a central hub?
(a) Ring   (b) Mesh   (c) Bus   (d) Star
Answer: (d) Star – The hub/switch is the centre of the star.

10. 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 – E.g. shared printers and intranets.

B. Short questions

Q1. Define data communication and list its key components.
Data communication is the exchange of data between a sender and a receiver through a medium. Components: sender, receiver, message, protocol and medium.
Q2. Explain the role of routers in a computer network.
A router connects different networks and forwards data packets between them, choosing the best path for each packet using a routing table. It connects a home network to the Internet.
Q3. What are the main functions of the Network Layer in the OSI model?
It moves data between different networks, uses IP addresses for addressing, and finds the best route (routing) from source to destination.
Q4. Describe the difference between packet switching and circuit switching.
In packet switching data is split into packets that travel independently by different routes and are reassembled (Internet). In circuit switching a dedicated path is reserved for the whole communication (old telephone calls).
Q5. What is the purpose of DHCP?
DHCP (Dynamic Host Configuration Protocol) automatically assigns IP addresses and network settings to devices when they join a network, so no manual setup is needed.
Q6. How does encapsulation ensure secure communication in a network?
Each layer wraps the data with its own header carrying addresses, sequence and error-check information. This keeps data organised and delivered to the right place; with encryption at the presentation layer it also stays protected.
Q7. Differentiate between TCP and UDP in terms of data transfer reliability.
TCP is reliable: it checks delivery, resends lost packets and keeps order (web pages, email). UDP is faster but does not guarantee delivery or order (live video, games).
Q8. Explain the importance of encryption in network security.
Encryption changes data into ciphertext that only the person with the key can read, so passwords, bank details and private messages stay safe even if they are intercepted.
Q9. What are the advantages of using a star topology in a network?
Easy to install and add devices, a fault in one cable affects only that device, and problems are easy to find because everything connects to one central switch.
Q10. How do firewalls contribute to network security?
A firewall checks all incoming and outgoing traffic against security rules and blocks anything suspicious, acting as a barrier between a trusted network and the Internet.

C. Long questions (key points)

Q1. Objectives of computer networks with examples.
  • Resource sharing: one printer or internet connection for a whole office.
  • Data communication: email, chat, video conferencing (Zoom, Teams).
  • Connectivity and collaboration: remote access, shared cloud documents (Google Drive).
Q2. Data rate 500 bps. Time to send (a) 10 kilobits (b) 10 kilobytes.
(a) 10 kilobits = 10 × 1000 = 10,000 bits → 10,000 ÷ 500 = 20 seconds (with 1 Kb = 1024 bits: 10,240 ÷ 500 = 20.48 s).
(b) 10 kilobytes = 10,000 × 8 = 80,000 bits → 80,000 ÷ 500 = 160 seconds (with 1 KB = 1024 bytes: 81,920 ÷ 500 = 163.84 s).
Q3. How data is transmitted using packet switching and circuit switching.
  • Packet switching: message split into packets with destination IP; routers send each by the best available route; packets may arrive out of order and are reassembled. Efficient, used by the Internet.
  • Circuit switching: a fixed path is set up first, all data uses it, then it is released. Steady quality but wastes capacity when idle (traditional telephone).
Q4. Role of protocols; functions of TCP/IP, HTTP, DNS and DHCP.
Protocols are agreed rules so different devices can communicate. TCP – reliable delivery; IP – addressing and routing; HTTP – web pages; DNS – names to IP addresses; DHCP – automatic IP addresses.
Q5. Methods of network security: firewalls, encryption, antivirus.
  • Firewall: filters traffic by rules.
  • Encryption: makes intercepted data unreadable without the key.
  • Antivirus: finds and removes malware.
  • Used together (with strong passwords) they give strong protection.
Q6. Real-world applications in business, education and healthcare.
  • Business: intranets, shared files and printers, email, online sales.
  • Education: online classes, virtual classrooms, LMS (Moodle, Blackboard).
  • Healthcare: Electronic Health Records, telemedicine, sharing test results.
Q7. Compare star, ring, bus and mesh topologies.
See the topology table above (layout, advantage, disadvantage, example).
Q8. Shift cipher with shift 4: (a) encrypt “SECURITY” (b) decrypt “WMXYVMI”.
(a) Move each letter 4 forward: S→W, E→I, C→G, U→Y, R→V, I→M, T→X, Y→C → WIGYVMXC.
(b) Move each letter 4 back: W→S, M→I, X→T, Y→U, V→R, M→I, I→E → SITURIE.
Q9. Total IPv4 addresses; how many left if 10% are reserved?
(a) 32 bits, each 0 or 1 → 2³² = 4,294,967,296.
(b) Reserved 10% = 429,496,729.6; left = 90% × 4,294,967,296 = ≈ 3,865,470,566 addresses.
9th class computer unit 6 MCQs with answers

Unit 6 (Introduction to Computer Networks) exercise MCQ answers: 1-b, 2-c, 3-b, 4-b, 5-b, 6-b, 7-c, 8-b, 9-d, 10-b.

What are the 7 layers of the OSI model?

Physical, Data Link, Network, Transport, Session, Presentation and Application.

Difference between IPv4 and IPv6

IPv4 uses 32-bit addresses (about 4.3 billion); IPv6 uses 128-bit addresses (almost unlimited).

What is the difference between switch and router?

A switch connects devices within one network using MAC addresses; a router connects different networks and routes packets using IP addresses.

What are simplex, half-duplex and full-duplex?

Simplex: one direction (keyboard). Half-duplex: both directions, one at a time (walkie-talkie). Full-duplex: both at once (phone call).

📄 Download these notes as PDF

Save this chapter to your phone or computer and read it offline, or share it with your friends.

The PDF downloads directly. Long chapters may take a few seconds.

More 9th Class Computer Science

Need a Computer Science home tutor?

Male & female Computer Science tutors in all major cities of Pakistan, home or online. 3-day free demo.

Scroll to Top