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.
Section A — 2 Mark Questions
| 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 |
| 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. |
- Sender — sends the data.
- Receiver — receives the data.
- Message — information being communicated.
- Communication Medium — path through which data travels.
- Protocol — rules governing communication.
| 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. |
- Advantage: It requires less cable and is relatively inexpensive.
- Disadvantage: Failure of the main backbone cable can affect the entire network.
| 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. |
- XML — Extensible Markup Language
- URL — Uniform Resource Locator
| 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
- ARPANET: An early packet-switching network that demonstrated communication between geographically separated computers.
- NSFNET: Developed by the National Science Foundation to connect universities and research centres and became an important networking backbone.
- Internet: Developed through the interconnection of networks worldwide using common protocols such as TCP/IP.
| 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 |
- Radio Waves: Used for wireless communication over relatively large areas.
- Microwaves: High-frequency waves generally requiring line-of-sight communication.
- Infrared Waves: Short-range communication that generally requires line-of-sight.
- 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.
- 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.
- RJ45 (Registered Jack-45): Connector commonly used with Ethernet cables.
- Ethernet Card/NIC: Provides a wired network interface to a computer.
- Wi-Fi Card: Provides wireless network connectivity to a computer.
- 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.
| 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. |
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
| 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. |
| 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 |
- Modem: Modulates and demodulates signals for supported communication links.
- Repeater: Regenerates weak signals.
- Gateway: Connects dissimilar networks and may translate between protocols.
- Router: Routes packets between different networks.
| 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 |
| 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. |
- 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.
| 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 |
192.168.1.10 10.20.30.40 256.10.20.5 192.168.1.300 172.16.5.1
| 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. |
- The user enters a domain name in the browser.
- The browser/system sends a request to a DNS server.
- DNS stands for Domain Name System and maps the domain name to its IP address.
- The browser uses the obtained IP address to communicate with the appropriate web server.
Section D — 5 Mark Case Study / Competency-Based Questions
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.
- LAN (Local Area Network) should be used because the school is within a limited geographical area.
- Star Topology is suitable because each department can be connected to a central switch.
- A Switch should be used as the central connecting device.
- A Repeater can regenerate a weak signal and extend the transmission distance.
- Twisted Pair Cable such as Ethernet cable is suitable for normal departmental connections because it is economical and widely used in LANs.
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.
- WAN (Wide Area Network) because the campuses are located in different cities.
- Fiber-optic cable or suitable high-speed wireless/WAN connectivity can be used.
- HTTPS (HyperText Transfer Protocol Secure) should be used for secure web communication.
- VoIP (Voice over Internet Protocol) can support voice communication and Internet-based real-time communication.
- A Router is used to connect and route traffic between different networks.
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.
- Switch
- Router
- Repeater
- Ethernet Card / NIC (Network Interface Card)
- Wi-Fi Card / Wireless Network Interface
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?
- HTTPS (HyperText Transfer Protocol Secure)
- The 'S' indicates Secure.
- HTML (HyperText Markup Language)
- A web server stores and delivers website resources/pages to clients.
- A URL (Uniform Resource Locator) specifies the address/location of an Internet resource.
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?
- SMTP
- Simple Mail Transfer Protocol
- POP3 (Post Office Protocol version 3)
- Post Office Protocol version 3
- A protocol provides a common set of rules so that different devices and mail systems can communicate correctly.
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?
- FTP
- File Transfer Protocol
- HTTP (HyperText Transfer Protocol)
- HTTPS (HyperText Transfer Protocol Secure)
- A web browser requests, receives and displays web resources/web pages for the user.
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?
- Valid: 192.168.10.15, 10.0.0.25 and 172.20.5.10.
- Invalid: 172.16.300.2 and 192.168.1.256.
- Each IPv4 address contains four decimal octets, and every octet must be between 0 and 255.
- An IPv4 address contains 4 octets.
- The maximum value of an octet is 255.
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.
- LAN (Local Area Network)
- Tree Topology
- Router
- Fiber-optic cable
- Tree topology supports hierarchical expansion, making it easier to add additional branches/buildings without redesigning the entire 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?
- LAN (Local Area Network)
- Tree Topology
- Router
- Fiber-optic cable
- A switch forwards data to the intended device instead of broadcasting it to every connected device, making communication more efficient.
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?
- WAN (Wide Area Network), because the communication spans different states and covers a large geographical area.
- Fiber-optic cable is suitable for high-speed, long-distance communication. Where wired connectivity is unavailable, appropriate wireless WAN technologies may also be used.
- HTTPS (HyperText Transfer Protocol Secure) should be used for secure communication between users and the website.
- VoIP (Voice over Internet Protocol) can be used for voice communication over the Internet.
- 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 |