Skip to content
Computer ScienceCBSE Class 12 · Chapter 6

Computer Networks: CBSE Class 12 Computer Science Notes and Case Questions

Updated 14 October 2026 · Fact-checked

A computer network is a group of computers and devices linked to share data and resources. Class 12 covers the growth from ARPANET and NSFNET into the Internet, devices such as modem, hub, switch, router and gateway, PAN, LAN, MAN and WAN, bus, star and tree topologies, and web services such as WWW, HTML, XML, URL and hosting.

What Computer Networks is about

Computer Networks is the first chapter of Unit 2, which carries 10 of the 70 theory marks together with Data Communication. In the 2026-27 sample paper this unit appears as 1-mark MCQs and 2-mark theory questions, and above all as the 5-mark network-design case (Q37): a campus with several buildings, distances and numbers of computers, where you choose the server's building, a cable layout, the topology, where a repeater or switch is needed, the best wired medium and a protocol.

The syllabus lists four groups of ideas:

  • evolution of networking: what a network is; ARPANET, NSFNET and the Internet
  • network devices: modem, Ethernet card, RJ45, repeater, hub, switch, router, gateway, Wi-Fi card
  • network types and topologies: PAN, LAN, MAN, WAN; bus, star and tree topology
  • web services: WWW, HTML, XML, domain names, URL, website, web browser, web server, web hosting

Mesh and ring topologies appear in the NCERT chapter but are not in the CBSE list, so questions stay with bus, star and tree. Learn every device by its job in one line, and every topology by its layout, one advantage and one disadvantage: that is exactly how the marks are given.

Weightage: This chapter is part of Unit 2, Computer Networks, which carries 10 of the 70 theory marks together with Data Communication.Source: CBSE Computer Science (083) syllabus 2026-27, distribution of marks, Unit 2 Computer Networks

Key concepts

Computer network and the evolution of networking
NCERT section NCERT 10.1, 10.2

A computer network is a set of computers and other devices (nodes) connected by wired or wireless links so that they can share data, software and hardware such as printers, and communicate. Benefits: resource sharing, communication (e-mail, chat, video calls), reliability (data can be kept on more than one computer) and lower cost. ARPANET (Advanced Research Projects Agency Network) was a US Department of Defence project of the late 1960s that linked research computers; its first link joined UCLA and the Stanford Research Institute (1969). TCP/IP became its standard protocol in 1983. NSFNET, set up by the US National Science Foundation in 1986, built a faster backbone that connected universities and widened access. These networks and many others joined through TCP/IP to form the Internet, the global network of networks. The World Wide Web followed in 1990.

Worked example

Arrange in time order and state the role of each: Internet, ARPANET, NSFNET.

Try it first, then show the solutionSolution
  1. ARPANET (1969): the first wide-area packet network, linking defence and research computers.
  2. NSFNET (1986): a high-speed backbone that brought universities and research institutions on board.
  3. Internet: the global network of networks formed as these and other networks interconnected using TCP/IP.

Answer: ARPANET → NSFNET → Internet.

Network devices
NCERT section NCERT 10.4
DeviceJob
ModemMOdulator-DEModulator: converts the computer's digital data to analog signals for a telephone or cable line and back
Ethernet card (NIC)Network Interface Card: connects a computer to a wired network; each NIC has a unique MAC address
RJ458-pin connector at the ends of Ethernet (twisted pair) cables
RepeaterRegenerates a weakened signal so it can travel further (signals in Ethernet cable weaken after about 100 m)
HubConnects devices in a LAN and sends incoming data to all ports (broadcast); collisions are possible
SwitchConnects devices in a LAN but sends data only to the port of the destination device (uses its address table)
RouterConnects different networks and chooses the best path for each packet
GatewayConnects networks that use different protocols, e.g. a LAN to the Internet; it is the entry and exit point
Wi-Fi cardWireless network adapter that connects a device to a wireless LAN

Worked example

Name the device: (a) it connects a school LAN with the Internet, translating between different protocols (b) it forwards data only to the intended computer within a lab (c) it is placed midway in a 150 m cable run (d) it plugs into the end of an Ethernet cable.

Try it first, then show the solutionSolution
  1. (a) Different protocols on the two sides: gateway (in practice a router often performs this role).
  2. (b) Sending only to the destination port: switch (a hub would broadcast).
  3. (c) Signals weaken over long cable: repeater.
  4. (d) The 8-pin connector: RJ45.

Answer: (a) Gateway (b) Switch (c) Repeater (d) RJ45

Hub versus switch versus router
NCERT section NCERT 10.4.5-10.4.7

All three connect devices, but at different levels of intelligence. A hub is passive about addresses: whatever arrives on one port goes out on every other port, so bandwidth is shared and collisions happen. A switch learns which device is on which port and sends each frame only there, so it is faster and more secure inside a LAN. A router works between networks: it reads the destination IP address of each packet and forwards it towards the right network, choosing a route.

Worked example

A lab of 30 computers is slow because every computer receives all the traffic. Which device is probably in use, and what should replace it?

Try it first, then show the solutionSolution
  1. Every computer receiving all traffic is the behaviour of a hub (broadcast).
  2. A switch sends each frame only to the destination port, cutting unnecessary traffic and collisions.

Answer: A hub; replace it with a switch.

Types of network: PAN, LAN, MAN, WAN
NCERT section NCERT 10.3

Networks are classified by the area they cover:

TypeAreaExample
PAN (Personal Area Network)about 10 m around one personphone linked to earbuds and a laptop by Bluetooth or a hotspot
LAN (Local Area Network)a room, building or campus, up to about 1 kmschool computer lab, office network
MAN (Metropolitan Area Network)a city, roughly 30-40 kmcable TV network of a city, links between a bank's branches in one city
WAN (Wide Area Network)country, continent or the worldthe Internet, a nationwide bank network

LANs are fast, cheap per node and privately owned; WANs are slower per link, cost more and usually use leased or public lines.

Worked example

Classify: (a) a smartwatch synced with a phone (b) the network joining a company's offices in Delhi and Chennai (c) the network inside one school building (d) the network joining the five branches of a college within one city.

Try it first, then show the solutionSolution
  1. (a) Devices of one person within a few metres: PAN.
  2. (b) Different cities: WAN.
  3. (c) One building: LAN.
  4. (d) Within one city: MAN.

Answer: (a) PAN (b) WAN (c) LAN (d) MAN

Topologies: bus, star and tree
NCERT section NCERT 10.5.3-10.5.5

A topology is the layout of the connections between nodes.

  • Bus: all nodes attach to one main cable (the backbone) with terminators at both ends; data travels along the cable to all nodes. Advantages: least cable, easy to add a node. Disadvantages: a break in the backbone stops the whole network; slows down with heavy traffic; a fault is hard to locate.
  • Star: every node has its own cable to a central hub or switch. Advantages: a broken cable affects only one node; easy to find faults and to add nodes. Disadvantages: more cable; if the central device fails, the whole network fails.
  • Tree (hierarchical): several star networks joined to a common backbone, in levels like a tree. Advantages: easy to expand by adding branches; suits large organisations with departments. Disadvantages: a backbone failure cuts off branches; more cable and more complex to set up.

Worked example

A school wants each lab's computers on their own switch and the labs linked to the server room by one main cable. Which topology is this, and what happens if one lab's switch fails?

Try it first, then show the solutionSolution
  1. Each lab is a star around its switch; the stars are joined to a common backbone: a tree topology.
  2. If one lab's switch fails, only that lab's computers lose connection; the other branches keep working.

Answer: Tree topology; only the computers of that lab are cut off.

Web services: WWW, HTML, XML, URL and domain names
NCERT section NCERT 10.7.1, 10.8

The Internet is the network of networks (the hardware and connections); the World Wide Web (WWW) is the system of interlinked web pages that is accessed over the Internet using HTTP, invented by Tim Berners-Lee in 1990. HTML (HyperText Markup Language) uses predefined tags such as <h1> and <p> to describe how a page is displayed. XML (Extensible Markup Language) uses tags you define yourself (such as <student>) to store and carry data; it is about describing data, not displaying it, and its tags are case-sensitive and must be closed. A domain name is the readable name of a server, such as cbse.gov.in, which the DNS translates into its IP address. A URL (Uniform Resource Locator) is the full address of a resource: protocol + domain name + path, e.g. https://www.cbse.gov.in/results/index.html.

Worked example

In the URL https://www.ncert.nic.in/textbook/pdf/lecs110.pdf, identify the protocol, the domain name and the path. Which part is translated by DNS?

Try it first, then show the solutionSolution
  1. Protocol: https.
  2. Domain name: www.ncert.nic.in (top-level domain .in).
  3. Path: /textbook/pdf/lecs110.pdf, the location of the file on that server.
  4. DNS translates the domain name into the server's IP address.

Answer: https; www.ncert.nic.in; /textbook/pdf/lecs110.pdf; the domain name.

Website, web browser, web server and web hosting
NCERT section Not in the NCERT chapter; CBSE syllabus (web services)

A web page is one document on the web; a website is a collection of related web pages under one domain, with a home page. A web browser (Chrome, Firefox, Edge, Safari) is client software that requests pages using HTTP/HTTPS and displays them. A web server is a computer (and the software on it) that stores websites and sends pages to browsers when they ask. Web hosting is the service of keeping a website's files on a web server that is always connected to the Internet, so the site is available to everyone; a hosting company rents this space, and the domain name is pointed to the server.

Worked example

A student builds a website for the school fest on her laptop. Why can others not open it yet, and which two things does she need?

Try it first, then show the solutionSolution
  1. The pages exist only on her laptop, which is not a web server reachable on the Internet all the time.
  2. She needs web hosting (space on a web server that is always online) and a registered domain name pointing to that server.

Answer: It is not hosted; she needs web hosting and a domain name.

Computer Networks in real life

Each concept, met in an everyday situation. Read the situation, answer the question in your own words, then compare with the model answer. The one-line hook is what to remember.

Choosing between hub and switch

Suppose a coaching centre has 24 computers in one room connected to a single hub, and video lessons keep freezing when everyone streams at once.

Explain the cause and suggest a fix.

Try it first, then show the solutionSolution
  1. A hub repeats every frame to all 24 ports, so the computers share the bandwidth and frames collide.
  2. A switch sends each frame only to the computer it is meant for, so many pairs can talk at the same time.

Answer: Replace the hub with a switch.

Memory hook: Hub shouts to everyone; switch whispers to one.

Network types

Imagine your family: your phone shares its hotspot with your tablet, your school lab is networked, your city's metro stations share a ticketing network, and your bank links branches across India.

Name the type of network in each case.

Try it first, then show the solutionSolution
  1. Hotspot between your own devices, within a few metres: PAN.
  2. School lab: LAN. Metro stations across one city: MAN. Bank branches across the country: WAN.

Answer: PAN, LAN, MAN, WAN.

Memory hook: Person, Local building, Metro city, Wide world.

Repeater

Suppose a school runs an Ethernet cable from the main building to the sports complex 160 m away, and the connection keeps dropping.

Why, and what device fixes it?

Try it first, then show the solutionSolution
  1. Signals in twisted-pair Ethernet cable weaken beyond about 100 m.
  2. A repeater placed on the run regenerates the signal (or a fibre-optic link can be used for the long stretch).

Answer: Signal loss over distance; add a repeater between the buildings.

Memory hook: Repeater = a relay runner who takes the baton and runs at full speed again.

Topics in this chapter

Computer Networks: syntax and key facts

Network types by area
PANabout 10 m
LANup to about 1 km
MANabout 30-40 km (a city)
WANcountry or world
Smallest to largest. The Internet is the largest WAN.
Device one-liners
Modemdigital ↔ analog
NICcomputer ↔ network
RJ45cable connector
Repeaterboosts signal
Hubsends to all
Switchsends to one
Routerbetween networks
Gatewaybetween different protocols
Repeater rule of thumb: Ethernet cable runs beyond about 100 m need one.
Topologies
Bus: one backbone cable. Star: all to a central hub or switch. Tree: stars joined by a backbone in levels.
Only bus, star and tree are in the 2026-27 list.
URL parts
protocol :// domain name / path, e.g. https://www.cbse.gov.in/results/index.html
Domain name ≠ URL: the URL also has the protocol and the path.
HTML vs XML
HTML: predefined tags, displays data. XML: user-defined tags, stores and carries data.
XML tags are case-sensitive and must be closed.

How the board asks Computer Networks

The question patterns to expect, and the method that works for each.

Question typeHow it is askedMethod
Network-design case (5 marks)A campus or company with 3-5 blocks, distances between them and number of computers in each; five 1-mark parts with a choice in the last (Q37 in the 2026-27 sample paper).Server: block with the most computers (traffic rule). Layout: star from the server block, or tree if blocks hang off sub-hubs; keep total cable short. Repeater: on any link longer than about 100 m (or the distance given). Switch/hub: in every block. Medium: fibre-optic for long or high-speed links. Protocol: VoIP for voice/video calls.
Name the deviceOne-line description of a job, name the device (1 mark).Match the key verb: converts (modem), regenerates (repeater), broadcasts (hub), forwards to one (switch), routes between networks (router), translates protocols (gateway).
DifferentiateHub vs switch, LAN vs WAN, HTML vs XML, Internet vs WWW, website vs web page, domain name vs URL (2 marks).Two clear points of contrast in a table or two lines each, with an example.
Topology advantages and disadvantagesGive one advantage and one disadvantage of star/bus/tree, or suggest a topology for a situation (2 marks).Bus: cheap but backbone is a single point of failure. Star: easy fault isolation but central device is a single point of failure. Tree: expandable but depends on the backbone.
Expand the abbreviationARPANET, NSFNET, NIC, RJ45, URL, HTML, XML, WWW, PAN, MAN (1 mark).Learn the full forms exactly; spelling and order count.

Tricks to remember Computer Networks

Short memory aids. Say each one aloud once, then use it on a question the same day.

  • "My New Robot Reads His Several Robots' Guides"

    Modem, NIC, RJ45, Repeater, Hub, Switch, Router, Gateway (plus the Wi-Fi card).

    Use it when: Listing the devices in the syllabus.

  • Hub = loudspeaker, Switch = postman

    A loudspeaker announces to the whole room; a postman delivers to one house.

    Use it when: Hub vs switch questions.

  • PLMW grows like your world

    Personal (you) → Local (school) → Metropolitan (city) → Wide (country and world).

    Use it when: Network types by area.

  • Bus, Star, Tree = Road, Wheel, Family tree

    Bus: houses on one road; Star: spokes to a hub; Tree: branches of a family tree.

    Use it when: Drawing and describing the three topologies.

  • HTML shows, XML stores

    HTML is how data looks; XML is what data is.

    Use it when: HTML vs XML.

Computer Networks: board-level solved questions

Ordered from board level to HOTS. Cover the solution, write your own, then compare step by step.

Example 1: Device from description · 1 mark · MCQBoard level

Which device regenerates a signal that has weakened over a long cable? (a) Hub (b) Repeater (c) Gateway (d) Modem

Try it first, then show the solutionSolution
  1. Weakened signals need to be amplified or regenerated before they travel further.
  2. That is the only job of a repeater.

Answer: (b) Repeater

Example 2: Topology under failure · 2 marks · Short answerHarder board level

In an office, (i) the main cable of a bus network breaks, (ii) one cable of a star network breaks, (iii) the central switch of a star network fails. What happens in each case?

Try it first, then show the solutionSolution
  1. (i) All nodes share the backbone, so the whole network stops.
  2. (ii) Only the node on that cable is cut off.
  3. (iii) Every node depends on the switch, so the whole network stops.

Answer: (i) whole network down (ii) one node down (iii) whole network down

Example 3: Assertion-reason on switches · 1 mark · Assertion-reasonHOTS / competency

Assertion (A): A switch reduces unnecessary traffic in a LAN compared with a hub.
Reason (R): A switch forwards a frame only to the port to which the destination device is connected.
(a) Both true, R explains A (b) Both true, R does not explain A (c) A true, R false (d) A false, R true

Try it first, then show the solutionSolution
  1. A is true: other computers do not receive frames meant for someone else.
  2. R gives the exact mechanism.

Answer: (a) Both A and R are true and R is the correct explanation of A.

Example 4: Network type and devices for a scenario · 2 marks · Short answerHarder board level

A hospital wants to link its main building in Lucknow with a clinic 12 km away in the same city and share patient records. (a) What type of network is this? (b) Which device connects each building's LAN to the link between them?

Try it first, then show the solutionSolution
  1. (a) Two sites in one city, about 12 km apart: MAN.
  2. (b) Joining two separate networks needs a router (a gateway if the networks use different protocols).

Answer: (a) MAN (b) Router

Example 5: URL dissection · 2 marks · Short answerBoard level

For https://cbseacademic.nic.in/curriculum_2027.html, write (a) the protocol (b) the domain name (c) the file requested (d) whether it is a URL or a domain name as a whole.

Try it first, then show the solutionSolution
  1. (a) https (secure HTTP).
  2. (b) cbseacademic.nic.in.
  3. (c) curriculum_2027.html.
  4. (d) The whole string, with protocol and path, is a URL.

Answer: (a) https (b) cbseacademic.nic.in (c) curriculum_2027.html (d) URL

Example 6: Why XML for data exchange? · 2 marks · Short answerHOTS / competency

Two school apps must exchange student records such as name, class and marks. Why is XML more suitable than HTML? Show how one record might look.

Try it first, then show the solutionSolution
  1. HTML has fixed tags meant for display (headings, paragraphs); it cannot say which value is a name or a mark.
  2. XML lets you create meaningful tags that describe the data, so any program can read it.
  3. Example: <student><name>Asha</name><class>12</class><marks>88</marks></student>

Answer: XML describes data with user-defined tags, so the receiving app knows what each value is; HTML only formats it.

Example 7: Design question: server and cable · 3 marks · Case-basedHOTS / competency

A company has four wings: A (25 computers), B (90), C (40), D (10). Distances: A-B 80 m, B-C 60 m, B-D 110 m, A-C 120 m, A-D 70 m, C-D 140 m. (a) Where should the server be? (b) Suggest a cable layout with minimum cable and say which link needs a repeater. (c) Which device should be placed in each wing?

Try it first, then show the solutionSolution
  1. (a) Wing B has the most computers (90): place the server there.
  2. (b) A star centred on B: B-A 80 m, B-C 60 m, B-D 110 m (total 250 m). B-D exceeds about 100 m, so it needs a repeater. (An alternative, connecting D through A: B-A 80 m, B-C 60 m, A-D 70 m, total 210 m, uses less cable and needs no repeater; either is accepted if justified.)
  3. (c) A switch in every wing to connect its computers.

Answer: (a) Wing B (b) Star from B with a repeater on B-D, or the shorter tree B-A-D with B-C; (c) a switch in each wing.

Case-study practice (Section E style)

Read the situation, then answer every part. In the board paper this is a 4-mark question split into 1 + 1 + 1 + 1 marks.

Network for Sunrise Public School

Suppose Sunrise Public School has four blocks: Admin (30 computers), Science (60), Library (15) and Sports (8). Distances: Admin-Science 60 m, Admin-Library 90 m, Admin-Sports 150 m, Science-Library 70 m, Science-Sports 120 m, Library-Sports 160 m. The school also wants teachers in the Admin block to hold video calls with parents over the Internet.

  1. (i) · 1 mark

    Suggest the most suitable block for the server, with a reason.

    Answer

    Answer: Science block.

    It has the most computers (60), so most traffic stays within it.

  2. (ii) · 1 mark

    Suggest a topology and cable layout connecting all blocks with the server.

    Answer

    Answer: Star topology centred on Science: Science-Admin (60 m), Science-Library (70 m), Science-Sports (120 m).

    Every block has a direct link to the server block, and a fault on one link affects only that block.

  3. (iii) · 1 mark

    Where is a repeater needed in your layout?

    Answer

    Answer: On the Science-Sports link (120 m).

    Signals in Ethernet cable weaken beyond about 100 m.

  4. (iv) · 1 mark

    Which device should connect the computers inside each block, and which protocol suits the video calls?

    Answer

    Answer: A switch in each block; VoIP for the video calls.

    A switch forwards data only to the destination computer; VoIP carries voice and video over IP networks.

Where the marks are

How a typical answer is split into step marks. Show every step: a right final answer alone rarely earns full marks.

Differentiate between a hub and a switch. [2 marks] (2 marks)

StepMarks
Hub: sends incoming data to all connected devices (broadcast); bandwidth shared, collisions possible1
Switch: sends data only to the intended device using its address table; faster, fewer collisions1

Explain star topology with one advantage and one disadvantage, and say how it differs from bus topology. [3 marks] (3 marks)

StepMarks
Star: each node connected by its own cable to a central hub or switch1
Advantage (fault in one cable affects one node / easy troubleshooting) and disadvantage (central device failure stops the network / more cable)1
Difference: bus uses one shared backbone cable, so a backbone break stops everything1

Differentiate between (a) Internet and WWW and (b) HTML and XML. [4 marks] (4 marks)

StepMarks
(a) Internet: global network of networks (infrastructure)1
(a) WWW: interlinked web pages accessed over the Internet through HTTP1
(b) HTML: predefined tags; describes how data is displayed1
(b) XML: user-defined tags; stores and transports data1

Network-design case: Greenfield School has four blocks: Admin (30 computers), Science (60), Library (15), Sports (8). Distances: Admin-Science 60 m, Admin-Library 90 m, Admin-Sports 150 m, Science-Library 70 m, Science-Sports 120 m, Library-Sports 160 m. Answer the five parts. [5 marks] (5 marks)

StepMarks
Server in Science block (most computers)1
Layout: star with Science at the centre (cables Science-Admin 60 m, Science-Library 70 m, Science-Sports 120 m)1
Repeater on the Science-Sports link (120 m, beyond about 100 m)1
Switch in every block to connect its computers1
Fibre-optic cable for the links between blocks (or VoIP for video calls, if that part is asked)1

Where students lose marks in Computer Networks

The slips examiners see most often, and what to write instead.

  • Mistake: Placing the server in the block nearest the centre instead of the block with the most computers

    The marking scheme follows the 80:20 traffic rule: most traffic is inside the biggest block, so the server should be there.

    Do this: Write: 'Block X, because it has the maximum number of computers, so most traffic stays local.'

    Usually costs: 1 mark

  • Mistake: Saying a router connects computers within a lab

    Within a LAN the device is a hub or switch; a router joins different networks.

    Do this: Lab or block: switch. Between networks or to the ISP: router. Different protocols: gateway.

    Usually costs: 1 mark

  • Mistake: Using the Internet and the WWW as the same thing

    The Internet is the global network itself; the WWW is one service on it (interlinked web pages over HTTP), alongside e-mail and file transfer.

    Do this: In a difference question write one line for each and give e-mail as an Internet service that is not the web.

    Usually costs: 1 mark

  • Mistake: Answering mesh or ring for a topology question

    The 2026-27 syllabus lists bus, star and tree; the board's case answers use these.

    Do this: Suggest star (or tree for many blocks) in design questions and justify it.

    Usually costs: 1 mark

  • Mistake: Writing the domain name when the URL is asked (or the reverse)

    A URL includes the protocol and the path; the domain name is only the server's name.

    Do this: URL: https://www.cbse.gov.in/index.html. Domain name: www.cbse.gov.in (or cbse.gov.in).

    Usually costs: Half a mark

NCERT exercise guide: Computer Networks

What each exercise in the NCERT chapter tests, how to approach it, and a question of the same kind solved step by step. Questions here are written in our own words.

NCERT Chapter 10 exercises: devices and network types

What it tests: Functions of modem, NIC, RJ45, repeater, hub, switch, router and gateway; PAN, LAN, MAN and WAN with examples.

How to approach it: Answer each device question with its job in one line and one place you would use it.

Same kind as the device-comparison exercises

How is a router different from a gateway?

Show the solutionSolution
  1. Router: forwards packets between networks that use the same protocols, choosing the best path using IP addresses.
  2. Gateway: connects networks that use different protocols and converts between them; it is the entry and exit point of a network.

Answer: A router routes between similar networks; a gateway connects dissimilar networks and translates protocols.

NCERT Chapter 10 exercises: topologies (bus, star, tree only)

What it tests: Layout, advantages and disadvantages, and choosing a topology for a situation.

How to approach it: Describe the layout in words (or a labelled sketch in the exam), then one advantage and one disadvantage.

Same kind as the topology-selection exercise

A company has three departments on three floors, each with 10 computers. Suggest a topology and justify it.

Show the solutionSolution
  1. Each floor can be a star around its own switch.
  2. The three switches can be linked to a main switch near the server: a tree topology.
  3. It is easy to expand (add a floor) and a fault in one floor's switch affects only that floor.

Answer: Tree topology (stars per floor joined to a backbone).

NCERT Chapter 10 exercises: WWW, URL and domain names

What it tests: Internet vs WWW, parts of a URL, role of DNS.

How to approach it: Split URLs at :// and at the first / after the domain.

Same kind as the URL exercise

Identify the domain name and top-level domain in http://www.airindia.in/flights/booking.htm.

Show the solutionSolution
  1. The domain name is between :// and the next /: www.airindia.in.
  2. The top-level domain is the last part: .in (India).

Answer: www.airindia.in; .in

Practice questions on Computer Networks

Write each answer on paper first. Open the hint only if you are stuck, and the answer only when you have finished.

  1. Q1 · 1 mark · Very short answerBoard level

    Expand: (a) NIC (b) XML (c) MAN (d) URL

    Hint

    Full forms.

    Answer

    (a) Network Interface Card (b) Extensible Markup Language (c) Metropolitan Area Network (d) Uniform Resource Locator

  2. Q2 · 1 mark · MCQBoard level

    Which of these is not a network device? (a) Router (b) Switch (c) Compiler (d) Gateway

    Hint

    One of these translates programs.

    Answer

    (c) Compiler

  3. Q3 · 2 marks · Short answerBoard level

    Give one advantage and one disadvantage of tree topology.

    Hint

    Expandability vs backbone dependence.

    Answer

    Advantage: easy to expand by adding branches; suits departments. Disadvantage: if the backbone fails, the branches are cut off; more cable and complex wiring.

  4. Q4 · 1 mark · Assertion-reasonHOTS / competency

    Assertion (A): A website can be accessed by anyone on the Internet only after it is hosted on a web server.
    Reason (R): A web browser stores websites and sends them to other computers.

    Hint

    Who stores and serves pages?

    Answer

    (c) A is true but R is false: a web server stores and serves pages; a browser requests and displays them.

  5. Q5 · 2 marks · Short answerHarder board level

    Your home Wi-Fi router connects to the ISP through a telephone line. Which device on that line converts the signals, and why is it needed?

    Hint

    Digital vs analog.

    Answer

    A modem: computers use digital signals but the telephone line carries analog signals, so the modem modulates outgoing data and demodulates incoming data.

  6. Q6 · 2 marks · Short answerHarder board level

    Differentiate between a website and a web page, and between a web server and a web browser.

    Hint

    Collection vs one document; serves vs requests.

    Answer

    A web page is a single document; a website is a set of related pages under one domain. A web server stores pages and sends them on request; a web browser requests pages and displays them.

  7. Q7 · 2 marks · Short answerHOTS / competency

    A city's traffic police wants all 40 junction cameras across the city to send video to a control room. (a) Which type of network is needed? (b) Which topology would you suggest for cameras grouped by zone, with each zone's cameras on a zone switch? Justify.

    Hint

    City-wide; groups under switches.

    Answer

    (a) MAN (city-wide). (b) Tree: each zone is a star around its switch, and the zone switches connect to the control room's backbone, so new zones can be added easily.

  8. Q8 · 2 marks · Short answerBoard level

    What is the role of DNS? Why are domain names used instead of IP addresses?

    Hint

    Phone book.

    Answer

    DNS translates a domain name into the IP address of the server. Domain names are easy to remember, while numeric IP addresses are not; the same name can also point to a new IP address if the server changes.

  9. Q9 · 1 mark · Very short answerBoard level

    Name the network type and the likely connection for: (a) a laptop and a wireless mouse (b) all computers of a school (c) ATMs of a bank across India.

    Hint

    Area decides the type.

    Answer

    (a) PAN (Bluetooth or a small receiver) (b) LAN (Ethernet cables and switches, Wi-Fi) (c) WAN (leased lines or the Internet).

  10. Q10 · 2 marks · Short answerHOTS / competency

    In the company with wings A (25), B (90), C (40), D (10) from the worked example, the management asks for the most economical cable layout (minimum total length) using these distances: A-B 80 m, B-C 60 m, B-D 110 m, A-C 120 m, A-D 70 m, C-D 140 m. Find it and give its total length.

    Hint

    Pick the shortest links that still connect all four blocks without a loop.

    Answer

    Take the shortest links in order: B-C 60 m, A-D 70 m, A-B 80 m. These three connect all four blocks: total 210 m (no link exceeds 100 m, so no repeater is needed).

Test your recall

Answer in your head or on paper first, then open the card. Pulling an answer out of memory makes it stick far better than re-reading.

  1. 1.Expand ARPANET and NSFNET.Show answer

    Advanced Research Projects Agency Network; National Science Foundation Network.

  2. 2.Which device converts digital signals to analog and back?Show answer

    Modem.

  3. 3.What is RJ45?Show answer

    An 8-pin connector used at the ends of Ethernet (twisted pair) cables.

  4. 4.Which device connects networks that use different protocols?Show answer

    Gateway.

  5. 5.Which topology fails completely if its main cable breaks?Show answer

    Bus topology.

  6. 6.What is the approximate range of a PAN?Show answer

    About 10 metres.

  7. 7.Give one difference between HTML and XML.Show answer

    HTML has predefined tags for displaying data; XML has user-defined tags for storing and carrying data.

  8. 8.What does DNS do?Show answer

    Translates a domain name into the IP address of the server.

  9. 9.What is web hosting?Show answer

    Storing a website's files on a web server that is always connected to the Internet so the site can be accessed by anyone.

Best order to study it

  1. Definition and benefits of a network; ARPANET, NSFNET and the Internet.
  2. Devices one by one with their jobs; then hub vs switch vs router vs gateway.
  3. PAN, LAN, MAN, WAN with ranges and examples.
  4. Bus, star and tree: layout, advantage, disadvantage.
  5. Web services: WWW vs Internet, HTML vs XML, domain name vs URL, browser, server, hosting.
  6. Practise two complete network-design cases.

Quick revision checklist

The night before the exam: can you do each of these without looking?

  • Network: interconnected nodes sharing data and resources.
  • ARPANET (1969) → NSFNET (1986) → Internet (network of networks, TCP/IP).
  • Modem converts digital ↔ analog; NIC connects a computer to a network; RJ45 is the cable connector.
  • Repeater regenerates weak signals (Ethernet beyond about 100 m).
  • Hub broadcasts; switch forwards to one port; router joins networks; gateway joins different protocols.
  • PAN ~10 m; LAN up to ~1 km; MAN a city; WAN country or world.
  • Bus: one backbone; Star: central switch; Tree: stars on a backbone.
  • WWW = interlinked web pages over HTTP, on the Internet.
  • HTML displays (fixed tags); XML stores data (own tags).
  • URL = protocol + domain name + path; DNS maps domain names to IP addresses.
  • Web browser requests and shows pages; web server stores and sends them; hosting keeps a site online.

Computer Networks: frequently asked questions

How many marks does Computer Networks carry in Class 12 CS?

Unit 2, Computer Networks, carries 10 of the 70 theory marks, shared between this chapter and Data Communication. The 5-mark network-design case in Section E draws on both.

Are mesh and ring topologies in the 2026-27 syllabus?

No. The syllabus lists bus, star and tree topologies. NCERT describes mesh and ring as well, but board questions based on the syllabus use the three listed ones.

What is the difference between a hub and a switch?

A hub sends incoming data to all its ports, so devices share bandwidth and collisions occur. A switch sends data only to the port where the destination device is connected, so it is faster and more secure.

How do I answer the server-placement question?

Choose the building with the largest number of computers and say why: most network traffic is generated there, so keeping the server there reduces traffic over the inter-building links.

Is IoT in the Class 12 CS syllabus?

The Internet of Things is described in the NCERT chapter but is not in the 2026-27 CBSE list for this unit, which names WWW, HTML, XML, domain names, URL, website, web browser, web server and web hosting under web services.

Based on: CBSE Computer Science (083) syllabus 2026-27; NCERT Computer Science, Textbook for Class XII (Reprint 2026-27)