Computer Science

Class XII Computer Science - Unit 2: Computer Networks | 50 Important Questions & Answers

Class 12 · Computer Science

Class XII Computer Science — Unit 2: Computer Networks

50 Important Questions with Answers & Explanations covering Evolution of Networking, Data Communication, Transmission Media, Network Devices, Network Topologies, Network Types, Protocols and Web Services.

CBSE Examination Focus: Questions include conceptual, application-based, competency-based, case-study and board-style questions.

Section A — 2 Mark Questions

Q1. What is ARPANET? State its significance in the evolution of networking.
Answer: ARPANET stands for Advanced Research Projects Agency Network. It was one of the first operational packet-switching networks developed in the late 1960s. It laid the foundation for the development of the modern Internet.
Q2. Differentiate between LAN and WAN.
Answer:
Basis LAN WAN
Full Form Local Area Network Wide Area Network
Coverage Small geographical area such as a room, building or campus Large geographical area such as cities, states or countries
Example School computer laboratory Internet
Q3. What is bandwidth? State its unit.
Answer: Bandwidth is the maximum amount of data that a communication channel can transmit in a given period of time. It is generally measured in bits per second (bps), such as Kbps, Mbps and Gbps.
Q4. Differentiate between circuit switching and packet switching.
Answer:
Circuit Switching Packet Switching
A dedicated communication path is established. Data is divided into packets.
The path remains reserved during communication. Packets may travel through different routes.
Example: traditional telephone communication. Example: Internet communication.
Q5. What is an IP Address? Why is it required?
Answer: IP stands for Internet Protocol. An IP Address is a numerical address assigned to a device connected to a network. It helps identify the device and enables data packets to be delivered to the correct destination.
Q6. What are the five basic components of data communication?
Answer: The five basic components are:
  1. Sender — sends the data.
  2. Receiver — receives the data.
  3. Message — information being communicated.
  4. Communication Medium — path through which data travels.
  5. Protocol — rules governing communication.
Q7. What is a protocol? Name the protocol used for transferring web pages.
Answer: A protocol is a set of rules that governs communication between devices on a network. HTTP (HyperText Transfer Protocol) is used for transferring web pages and hypertext over the World Wide Web.
Q8. What is a repeater? Why is it used?
Answer: A repeater is a network device that receives a weak signal, regenerates it and retransmits it. It is used to extend the effective transmission distance of a network.
Q9. What is an RJ45 connector? Give its full form and use.
Answer: RJ45 stands for Registered Jack-45. It is commonly used as an 8-pin modular connector for connecting Ethernet cables to computers, switches, routers and other network devices.
Q10. Differentiate between a Hub and a Switch.
Answer:
Hub Switch
Broadcasts incoming data to all connected devices. Forwards data to the intended device.
Less efficient and may cause more collisions. More efficient and reduces unnecessary traffic.
Generally works at the Physical Layer. Generally works at the Data Link Layer.
Q11. What is the function of a Gateway?
Answer: A gateway connects networks that may use different protocols or architectures. It can translate data between different network environments, allowing otherwise incompatible networks to communicate.
Q12. State one advantage and one disadvantage of Bus Topology.
Answer:
  • Advantage: It requires less cable and is relatively inexpensive.
  • Disadvantage: Failure of the main backbone cable can affect the entire network.
Q13. Differentiate between Star and Bus Topology on the basis of cabling and fault tolerance.
Answer:
Basis Star Topology Bus Topology
Cabling Each device has a separate connection to the central device. All devices share a common backbone cable.
Fault tolerance Failure of one cable usually affects only one device. Failure of the backbone can affect the entire network.
Q14. Expand the following: (i) XML (ii) URL.
Answer:
  1. XML — Extensible Markup Language
  2. URL — Uniform Resource Locator
Q15. Differentiate between a Web Browser and a Web Server.
Answer:
Web Browser Web Server
Software used to request and display web pages. Computer/software that stores and serves web resources.
Examples: Chrome, Firefox, Edge. Examples: Apache, Nginx.

Section B — 3 Mark Questions

Q16. Explain the evolution of networking through ARPANET, NSFNET and the Internet.
Answer:
  1. ARPANET: An early packet-switching network that demonstrated communication between geographically separated computers.
  2. NSFNET: Developed by the National Science Foundation to connect universities and research centres and became an important networking backbone.
  3. Internet: Developed through the interconnection of networks worldwide using common protocols such as TCP/IP.
Q17. Explain the basic components of data communication.
Answer: Data communication consists of a sender that generates the data, a receiver that receives it, a message containing the information, a communication medium through which the information travels, and a protocol that defines the rules of communication.
Q18. Explain bandwidth and data transfer rate. How are they related?
Answer: Bandwidth represents the maximum capacity of a communication channel, while data transfer rate represents the actual rate at which data is transferred. Both are measured in bps. A higher bandwidth generally permits a higher possible data transfer rate.
Q19. Compare Twisted Pair, Co-axial and Fiber-optic cables.
Answer:
Parameter Twisted Pair Co-axial Fiber-optic
Transmission Electrical signals Electrical signals Light signals
Speed Moderate to high Moderate Very high
Interference More susceptible Less susceptible than twisted pair Immune to electromagnetic interference
Q20. Explain any three wireless transmission media.
Answer:
  1. Radio Waves: Used for wireless communication over relatively large areas.
  2. Microwaves: High-frequency waves generally requiring line-of-sight communication.
  3. Infrared Waves: Short-range communication that generally requires line-of-sight.
Q21. Explain circuit switching with a suitable example.
Answer: In circuit switching, a dedicated communication path is established between sender and receiver before communication begins. The path remains reserved until communication ends. A traditional telephone call is an example.
Q22. Explain packet switching with a suitable example.
Answer: In packet switching, a message is divided into small packets. Packets may travel through different routes and are reassembled at the destination. Internet communication and email are common examples.
Q23. Differentiate between a Modem and an Ethernet Card.
Answer:
  • Modem: Modulator-Demodulator; converts signals to enable communication over supported transmission lines.
  • Ethernet Card/NIC: Network Interface Card that enables a computer to connect to a wired Ethernet network.
Q24. Explain the functions of a Router and a Switch.
Answer:
  • Switch: Connects devices within a network and forwards frames to the appropriate device using MAC addresses.
  • Router: Connects different networks and forwards packets between them using IP addresses.
  • Difference: A switch primarily connects devices within a LAN, while a router connects different networks.
Q25. Explain the functions of an RJ45 connector, Ethernet Card and Wi-Fi Card.
Answer:
  1. RJ45 (Registered Jack-45): Connector commonly used with Ethernet cables.
  2. Ethernet Card/NIC: Provides a wired network interface to a computer.
  3. Wi-Fi Card: Provides wireless network connectivity to a computer.
Q26. What is a network topology? Name the three topologies prescribed in the syllabus.
Answer: Network topology refers to the physical or logical arrangement of devices and connections in a network. The three prescribed topologies are Bus, Star and Tree.
Q27. Explain Star Topology with two advantages and one limitation.
Answer: In Star Topology, every device is connected individually to a central hub or switch.
  • Fault identification is easy.
  • Failure of one individual connection normally does not affect other devices.
  • Limitation: Failure of the central device can affect the entire network.
Q28. What is Tree Topology? Why is it suitable for large organizations?
Answer: Tree Topology is a hierarchical arrangement of networks, generally combining multiple star networks. It is suitable for large organizations because it supports structured expansion and allows different departments or branches to be organized separately.
Q29. Differentiate between HTTP and HTTPS.
Answer:
HTTP HTTPS
HyperText Transfer Protocol HyperText Transfer Protocol Secure
Does not provide the same level of encrypted communication. Uses encryption through TLS/SSL to secure communication.
Less suitable for sensitive transactions. Suitable for login, payment and other sensitive information.
Q30. What is a Domain Name? Explain its relationship with an IP Address.
Answer: A domain name is a human-readable name used to identify a website, such as www.example.com. The Domain Name System (DNS) translates the domain name into the corresponding IP address so that computers can locate the required server.

Section C — 4 Mark Questions

Q31. Explain when each of the following devices should be used: Repeater, Hub, Switch and Router.
Answer:
Device Use
Repeater Regenerates weak signals to extend transmission distance.
Hub Connects multiple devices and broadcasts data to all connected ports.
Switch Connects devices in a LAN and forwards data to the intended device.
Router Connects different networks and routes packets between them.
Q32. Compare Bus, Star and Tree Topologies on the basis of cable requirement, fault identification, cost and expansion.
Answer:
Basis Bus Star Tree
Cable requirement Least More Moderate to high
Fault identification Difficult Easy Moderate
Cost Low Moderate Moderate to high
Expansion Limited Easy Highly suitable
Q33. Explain the functions of Modem, Repeater, Gateway and Router.
Answer:
  1. Modem: Modulates and demodulates signals for supported communication links.
  2. Repeater: Regenerates weak signals.
  3. Gateway: Connects dissimilar networks and may translate between protocols.
  4. Router: Routes packets between different networks.
Q34. Explain HTTP, FTP, SMTP and POP3 with their uses.
Answer:
Protocol Full Form Use
HTTP HyperText Transfer Protocol Transfer of web pages/resources
FTP File Transfer Protocol Transfer of files
SMTP Simple Mail Transfer Protocol Sending email
POP3 Post Office Protocol version 3 Receiving/downloading email
Q35. Differentiate between SMTP and POP3.
Answer:
SMTP POP3
Simple Mail Transfer Protocol Post Office Protocol version 3
Used mainly for sending email. Used mainly for receiving/downloading email.
Works between mail clients and mail servers or between mail servers. Allows a mail client to retrieve messages from a mail server.
Q36. Explain WWW, HTML, XML and URL.
Answer:
  • WWW: World Wide Web — a system of interlinked web resources accessed through the Internet.
  • HTML: HyperText Markup Language — used to create and structure web pages.
  • XML: Extensible Markup Language — used to store and transport structured data.
  • URL: Uniform Resource Locator — specifies the location/address of a resource on the Internet.
Q37. What is web hosting? Why is it required for a website?
Answer: Web hosting is a service that provides storage and access for website files on a web server. It is required so that users can access the website through the Internet.
Q38. Explain the difference between a website, web browser and web server.
Answer:
Term Meaning Example
Website Collection of related web pages/resources available online School website
Web Browser Software used to access and display web pages Chrome, Firefox
Web Server Computer/software that stores and serves web resources Apache, Nginx
Q39. Identify the valid and invalid IPv4 addresses from the following. Give reasons for invalid addresses.
192.168.1.10    10.20.30.40    256.10.20.5    192.168.1.300    172.16.5.1
Answer:
IP Address Status Reason
192.168.1.10 Valid Each octet is between 0 and 255.
10.20.30.40 Valid Each octet is between 0 and 255.
256.10.20.5 Invalid 256 exceeds the maximum value of an IPv4 octet, which is 255.
192.168.1.300 Invalid 300 exceeds the maximum value of an IPv4 octet.
172.16.5.1 Valid Each octet is within the range 0–255.
Q40. Explain how a domain name is converted into an IP address when a user opens a website.
Answer:
  1. The user enters a domain name in the browser.
  2. The browser/system sends a request to a DNS server.
  3. DNS stands for Domain Name System and maps the domain name to its IP address.
  4. The browser uses the obtained IP address to communicate with the appropriate web server.

Section D — 5 Mark Case Study / Competency-Based Questions

Q41. Case Study: School Network Planning

A school has four departments — Administration, Computer Lab, Library and Accounts — located in the same building. The school wants to connect all departments to a central network. The Computer Lab has the largest number of computers.

(i) Which type of network should be used within the school building?
(ii) Which topology would be suitable for connecting the departments?
(iii) Which device should be placed at the centre of the topology?
(iv) Which device can be used if a cable signal becomes weak over a long distance?
(v) Suggest a suitable wired transmission medium for normal departmental connections.

Answer:
  1. LAN (Local Area Network) should be used because the school is within a limited geographical area.
  2. Star Topology is suitable because each department can be connected to a central switch.
  3. A Switch should be used as the central connecting device.
  4. A Repeater can regenerate a weak signal and extend the transmission distance.
  5. Twisted Pair Cable such as Ethernet cable is suitable for normal departmental connections because it is economical and widely used in LANs.
Q42. Case Study: Connecting School Branches

A school has its main campus in Jaipur and branch campuses in Delhi and Mumbai. The management wants centralized access to academic data and online meetings.

(i) What type of network will connect these campuses?
(ii) Suggest a suitable transmission medium.
(iii) Which protocol/technology is suitable for secure web access?
(iv) Which technology can support Internet-based voice/video communication?
(v) Name a device used to connect different networks.

Answer:
  1. WAN (Wide Area Network) because the campuses are located in different cities.
  2. Fiber-optic cable or suitable high-speed wireless/WAN connectivity can be used.
  3. HTTPS (HyperText Transfer Protocol Secure) should be used for secure web communication.
  4. VoIP (Voice over Internet Protocol) can support voice communication and Internet-based real-time communication.
  5. A Router is used to connect and route traffic between different networks.
Q43. Case Study: Office Network Devices

An office has 40 computers connected within a LAN. The administrator wants efficient communication between computers and also needs to connect the LAN to the Internet. One cable segment is longer than the normal effective range.

Identify the appropriate device for each requirement:
(i) Connect multiple computers within the LAN.
(ii) Connect the LAN to another network/Internet.
(iii) Extend the signal over the long cable segment.
(iv) Provide a wired network interface to a computer.
(v) Provide wireless network connectivity to a computer.

Answer:
  1. Switch
  2. Router
  3. Repeater
  4. Ethernet Card / NIC (Network Interface Card)
  5. Wi-Fi Card / Wireless Network Interface
Q44. Case Study: Online School Portal

A school develops an online portal through which students can view notices, download study material and securely submit information.

(i) Which protocol should be preferred for secure access to the portal?
(ii) What does the 'S' in HTTPS indicate?
(iii) Which language is commonly used to structure web pages?
(iv) What is the role of a web server?
(v) What is the role of a URL?

Answer:
  1. HTTPS (HyperText Transfer Protocol Secure)
  2. The 'S' indicates Secure.
  3. HTML (HyperText Markup Language)
  4. A web server stores and delivers website resources/pages to clients.
  5. A URL (Uniform Resource Locator) specifies the address/location of an Internet resource.
Q45. Case Study: Email Communication

A school uses email for communication with students and parents. Teachers send messages, while students retrieve received messages using their email applications.

(i) Which protocol is mainly used for sending email?
(ii) Expand SMTP.
(iii) Which protocol can be used to retrieve email from a mail server?
(iv) Expand POP3.
(v) Why is a protocol necessary in email communication?

Answer:
  1. SMTP
  2. Simple Mail Transfer Protocol
  3. POP3 (Post Office Protocol version 3)
  4. Post Office Protocol version 3
  5. A protocol provides a common set of rules so that different devices and mail systems can communicate correctly.
Q46. Case Study: File Transfer and Web Access

A website administrator needs to upload website files to a server. Students later access the website through a browser.

(i) Which protocol is suitable for transferring files?
(ii) Expand FTP.
(iii) Which protocol is used for normal web-page communication?
(iv) Which secure version should be preferred for sensitive web communication?
(v) What is the role of a web browser?

Answer:
  1. FTP
  2. File Transfer Protocol
  3. HTTP (HyperText Transfer Protocol)
  4. HTTPS (HyperText Transfer Protocol Secure)
  5. A web browser requests, receives and displays web resources/web pages for the user.
Q47. Case Study: Network Address Verification

A network administrator records the following IPv4 addresses:

192.168.10.15, 172.16.300.2, 10.0.0.25, 192.168.1.256, 172.20.5.10

(i) Identify the valid addresses.
(ii) Identify the invalid addresses.
(iii) State the rule used to identify an invalid IPv4 address.
(iv) How many octets does an IPv4 address contain?
(v) What is the maximum value of an IPv4 octet?

Answer:
  1. Valid: 192.168.10.15, 10.0.0.25 and 172.20.5.10.
  2. Invalid: 172.16.300.2 and 192.168.1.256.
  3. Each IPv4 address contains four decimal octets, and every octet must be between 0 and 255.
  4. An IPv4 address contains 4 octets.
  5. The maximum value of an octet is 255.
Q48. Case Study: Designing a Campus Network

A university has several buildings. Each building contains multiple computers connected through switches. The university wants to connect all buildings to a central network and plans to add more buildings in future.

(i) Which network type is suitable within one building?
(ii) Which topology is suitable for the hierarchical campus arrangement?
(iii) Which device should connect different networks?
(iv) Which cable is suitable for high-speed inter-building communication?
(v) Give one reason why the selected topology is suitable for future expansion.

Answer:
  1. LAN (Local Area Network)
  2. Tree Topology
  3. Router
  4. Fiber-optic cable
  5. Tree topology supports hierarchical expansion, making it easier to add additional branches/buildings without redesigning the entire network.
Q49. Case Study: University Network

A university has five hostel buildings connected to its main campus. Each hostel has a small LAN with computers connected through switches. The hostel networks must access the central library and academic portal.

(i) What type of network is formed inside one hostel?
(ii) Which topology is suitable for connecting the hostel networks hierarchically?
(iii) Which device should be used to route traffic between networks?
(iv) Which transmission medium is suitable for high-speed connections between buildings?
(v) Why is a switch preferred over a hub inside each hostel?

Answer:
  1. LAN (Local Area Network)
  2. Tree Topology
  3. Router
  4. Fiber-optic cable
  5. A switch forwards data to the intended device instead of broadcasting it to every connected device, making communication more efficient.
Q50. Board-Style Case Study: Digital News Network

A national news organisation wants to provide news through its website and mobile application. Reporters in different parts of the country upload photographs and videos to the central server. Users access the news through a secure website. The organisation also plans to provide live audio/video communication between reporters and the studio.

Answer the following:
(i) Which type of network is suitable for communication between offices located in different states?
(ii) Which transmission medium can provide high-speed long-distance communication?
(iii) Which protocol should be used for secure access to the website?
(iv) Which technology/protocol can support Internet-based voice communication?
(v) Which device is used to route data between different networks?

Answer:
  1. WAN (Wide Area Network), because the communication spans different states and covers a large geographical area.
  2. Fiber-optic cable is suitable for high-speed, long-distance communication. Where wired connectivity is unavailable, appropriate wireless WAN technologies may also be used.
  3. HTTPS (HyperText Transfer Protocol Secure) should be used for secure communication between users and the website.
  4. VoIP (Voice over Internet Protocol) can be used for voice communication over the Internet.
  5. A Router connects different networks and forwards packets towards their destinations.

Quick Revision — Important Full Forms

Term Full Form
ARPANET Advanced Research Projects Agency Network
NSFNET National Science Foundation Network
LAN Local Area Network
MAN Metropolitan Area Network
WAN Wide Area Network
IP Internet Protocol
RJ45 Registered Jack-45
NIC Network Interface Card
HTTP HyperText Transfer Protocol
HTTPS HyperText Transfer Protocol Secure
FTP File Transfer Protocol
SMTP Simple Mail Transfer Protocol
POP3 Post Office Protocol version 3
TCP/IP Transmission Control Protocol / Internet Protocol
URL Uniform Resource Locator
WWW World Wide Web
HTML HyperText Markup Language
XML Extensible Markup Language
VoIP Voice over Internet Protocol
Board Exam Tip: Learn the difference between Hub, Switch, Router, Repeater and Gateway. Practise valid/invalid IP addresses, topology comparisons and protocol full forms. These concepts are frequently useful in competency-based and case-study questions.