Computer Networks MCQ & Objective Questions
Understanding Computer Networks is crucial for students preparing for school and competitive exams. This topic not only forms a significant part of the curriculum but also enhances your grasp of how data communication works. Practicing MCQs and objective questions related to Computer Networks can significantly improve your exam performance by familiarizing you with important concepts and question formats.
What You Will Practise Here
Fundamentals of Computer Networks
Types of Networks: LAN, WAN, and MAN
Network Topologies: Star, Ring, Bus, and Mesh
Protocols and Standards: TCP/IP, HTTP, FTP
Network Devices: Routers, Switches, and Hubs
IP Addressing and Subnetting
Common Network Security Measures
Exam Relevance
Computer Networks is a vital topic in various examinations such as CBSE, State Boards, NEET, and JEE. Questions often focus on definitions, key concepts, and practical applications of network theories. You may encounter multiple-choice questions that test your understanding of network types, protocols, and devices, making it essential to master this area for effective exam preparation.
Common Mistakes Students Make
Confusing different types of networks and their characteristics.
Misunderstanding network protocols and their functions.
Overlooking the importance of IP addressing and subnetting.
Failing to recognize the role of network devices in data transmission.
FAQs
Question: What are the main types of computer networks?Answer: The main types of computer networks include Local Area Network (LAN), Wide Area Network (WAN), and Metropolitan Area Network (MAN).
Question: Why is subnetting important in computer networks?Answer: Subnetting helps in efficient IP address management and improves network performance and security.
Now is the time to enhance your understanding of Computer Networks! Dive into our practice MCQs and test your knowledge to ensure you are well-prepared for your exams. Remember, consistent practice with objective questions will lead to better scores and a clearer grasp of the subject.
Q. What is the main function of cookies in HTTP?
A.
Data encryption
B.
Session management
C.
File storage
D.
Network routing
Show solution
Solution
Cookies are used for session management, allowing servers to remember user sessions and preferences.
Correct Answer:
B
— Session management
Learn More →
Q. What is the main function of the 'Cache-Control' header in HTTP?
A.
To control the server load
B.
To manage client-side caching
C.
To specify the content type
D.
To authenticate users
Show solution
Solution
The 'Cache-Control' header is used to specify directives for caching mechanisms in both requests and responses, controlling how resources are cached.
Correct Answer:
B
— To manage client-side caching
Learn More →
Q. What is the main function of the 'POST' method in HTTP?
A.
To retrieve data
B.
To send data to the server
C.
To update data
D.
To delete data
Show solution
Solution
The 'POST' method in HTTP is used to send data to the server, often resulting in a change in state or side effects on the server.
Correct Answer:
B
— To send data to the server
Learn More →
Q. What is the main function of the Data Link Layer in the OSI model?
A.
To provide error detection and correction
B.
To establish, maintain, and terminate connections
C.
To route packets between networks
D.
To encrypt data
Show solution
Solution
The Data Link Layer (Layer 2) provides error detection and correction, ensuring reliable data transfer over physical media.
Correct Answer:
A
— To provide error detection and correction
Learn More →
Q. What is the main function of the HTTP header?
A.
To encrypt data
B.
To provide metadata about the request or response
C.
To establish a connection
D.
To route packets
Show solution
Solution
The HTTP header provides metadata about the request or response, such as content type and length.
Correct Answer:
B
— To provide metadata about the request or response
Learn More →
Q. What is the main function of the Network Layer in the OSI model?
A.
Data formatting
B.
Path determination and logical addressing
C.
Session management
D.
Error control
Show solution
Solution
The main function of the Network Layer is path determination and logical addressing for data packets.
Correct Answer:
B
— Path determination and logical addressing
Learn More →
Q. What is the main function of the Spanning Tree Protocol (STP)?
A.
To prevent routing loops
B.
To manage IP address allocation
C.
To prevent switching loops
D.
To enhance data encryption
Show solution
Solution
The Spanning Tree Protocol (STP) is used to prevent switching loops in a network by creating a loop-free logical topology.
Correct Answer:
C
— To prevent switching loops
Learn More →
Q. What is the main function of the TCP protocol in relation to HTTP?
A.
Data encryption
B.
Error detection
C.
Reliable data transfer
D.
Data compression
Show solution
Solution
TCP (Transmission Control Protocol) provides reliable data transfer for HTTP by ensuring that data packets are delivered in order and without errors.
Correct Answer:
C
— Reliable data transfer
Learn More →
Q. What is the main function of the TCP protocol in the TCP/IP model?
A.
Routing
B.
Error detection
C.
Data segmentation
D.
Addressing
Show solution
Solution
The main function of the TCP protocol is data segmentation, which breaks down messages into smaller packets for transmission.
Correct Answer:
C
— Data segmentation
Learn More →
Q. What is the main purpose of a router in a network?
A.
To connect multiple devices within the same network
B.
To manage IP address assignments
C.
To route data between different networks
D.
To provide wireless connectivity
Show solution
Solution
A router's main purpose is to route data between different networks, making decisions based on IP addresses.
Correct Answer:
C
— To route data between different networks
Learn More →
Q. What is the main purpose of a VLAN in a switched network?
A.
To increase the speed of the network
B.
To segment a network into different broadcast domains
C.
To provide redundancy
D.
To enhance security by isolating traffic
Show solution
Solution
A VLAN (Virtual Local Area Network) segments a network into different broadcast domains, enhancing security and reducing congestion.
Correct Answer:
B
— To segment a network into different broadcast domains
Learn More →
Q. What is the main purpose of the ARP protocol?
A.
To resolve IP addresses to MAC addresses
B.
To manage network traffic
C.
To establish a secure connection
D.
To route packets between networks
Show solution
Solution
The ARP (Address Resolution Protocol) is used to resolve IP addresses to MAC addresses in a local network.
Correct Answer:
A
— To resolve IP addresses to MAC addresses
Learn More →
Q. What is the main purpose of the HTTP protocol?
A.
To send emails
B.
To transfer web pages
C.
To manage network devices
D.
To establish VPN connections
Show solution
Solution
The main purpose of the HTTP protocol is to transfer web pages and resources over the internet.
Correct Answer:
B
— To transfer web pages
Learn More →
Q. What is the main purpose of the Network layer in the OSI model?
A.
Data formatting
B.
Path determination and logical addressing
C.
Session management
D.
Data encryption
Show solution
Solution
The main purpose of the Network layer is path determination and logical addressing to route packets across networks.
Correct Answer:
B
— Path determination and logical addressing
Learn More →
Q. What is the maximum length of a CAT5e Ethernet cable segment?
A.
100 meters
B.
200 meters
C.
300 meters
D.
400 meters
Show solution
Solution
The maximum length of a CAT5e Ethernet cable segment is 100 meters for reliable data transmission.
Correct Answer:
A
— 100 meters
Learn More →
Q. What is the maximum length of a standard Ethernet cable (Cat 5e)?
A.
50 meters
B.
100 meters
C.
200 meters
D.
300 meters
Show solution
Solution
The maximum length of a standard Ethernet cable (Cat 5e) is 100 meters for reliable data transmission.
Correct Answer:
B
— 100 meters
Learn More →
Q. What is the maximum length of a standard Ethernet frame?
A.
1500 bytes
B.
1518 bytes
C.
1600 bytes
D.
9000 bytes
Show solution
Solution
The maximum length of a standard Ethernet frame is 1518 bytes, which includes the header and trailer.
Correct Answer:
B
— 1518 bytes
Learn More →
Q. What is the maximum length of an IPv4 address?
A.
16 bits
B.
32 bits
C.
64 bits
D.
128 bits
Show solution
Solution
An IPv4 address is 32 bits long, allowing for approximately 4.3 billion unique addresses.
Correct Answer:
B
— 32 bits
Learn More →
Q. What is the maximum number of hosts that can be accommodated in a subnet with a subnet mask of 255.255.255.224?
Show solution
Solution
A subnet mask of 255.255.255.224 provides 32 IP addresses, of which 30 are usable for hosts after accounting for the network and broadcast addresses.
Correct Answer:
A
— 30
Learn More →
Q. What is the maximum number of hosts that can be accommodated in a subnet with a subnet mask of 255.255.255.240?
Show solution
Solution
A subnet mask of 255.255.255.240 provides 4 bits for host addresses, allowing for 2^4 - 2 = 14 usable hosts.
Correct Answer:
A
— 14
Learn More →
Q. What is the maximum number of hosts that can be addressed in a /22 subnet?
A.
1022
B.
1024
C.
2046
D.
2048
Show solution
Solution
A /22 subnet has 2^(32-22) = 2^10 = 1024 total addresses. Subtracting 2 for the network and broadcast addresses leaves 1022 usable host addresses.
Correct Answer:
A
— 1022
Learn More →
Q. What is the maximum number of hosts that can be addressed in a /24 subnet?
A.
254
B.
256
C.
512
D.
128
Show solution
Solution
A /24 subnet provides 256 IP addresses, but 2 are reserved (network and broadcast), leaving 254 usable addresses for hosts.
Correct Answer:
A
— 254
Learn More →
Q. What is the maximum number of hosts that can be addressed in a /26 subnet?
A.
62
B.
64
C.
126
D.
128
Show solution
Solution
A /26 subnet has 64 IP addresses, but 2 are reserved (network and broadcast), leaving 62 usable host addresses.
Correct Answer:
A
— 62
Learn More →
Q. What is the maximum number of hosts that can be addressed in a /29 subnet?
Show solution
Solution
A /29 subnet provides 8 total addresses, but 2 are reserved (network and broadcast), allowing for 6 usable host addresses.
Correct Answer:
B
— 6
Learn More →
Q. What is the maximum number of hosts that can be addressed in a /30 subnet?
Show solution
Solution
A /30 subnet allows for 4 addresses, but only 2 are usable for hosts (1 for network and 1 for broadcast).
Correct Answer:
A
— 2
Learn More →
Q. What is the maximum number of hosts that can be addressed in a Class C network?
A.
254
B.
256
C.
512
D.
1024
Show solution
Solution
In a Class C network, the maximum number of usable host addresses is 254, calculated as 2^8 - 2.
Correct Answer:
A
— 254
Learn More →
Q. What is the maximum number of hosts that can be addressed in a subnet with a /26 prefix?
A.
62
B.
64
C.
126
D.
128
Show solution
Solution
A /26 subnet provides 64 IP addresses, but 2 are reserved (network and broadcast), leaving 62 usable host addresses.
Correct Answer:
A
— 62
Learn More →
Q. What is the maximum number of hosts that can be addressed in a subnet with a /26 subnet mask?
Show solution
Solution
A /26 subnet mask allows for 64 total addresses, of which 62 can be assigned to hosts (2 addresses are reserved for network and broadcast).
Correct Answer:
A
— 62
Learn More →
Q. What is the maximum number of hosts that can be addressed in a subnet with a /27 prefix?
Show solution
Solution
A /27 subnet provides 32 IP addresses, but 2 are reserved (network and broadcast), allowing for 30 usable hosts.
Correct Answer:
A
— 30
Learn More →
Q. What is the maximum number of hosts that can be addressed in a subnet with a subnet mask of 255.255.255.128?
A.
126
B.
128
C.
254
D.
256
Show solution
Solution
A subnet mask of 255.255.255.128 allows for 2^7 - 2 = 126 usable host addresses (subtracting 2 for network and broadcast addresses).
Correct Answer:
A
— 126
Learn More →
Showing 91 to 120 of 329 (11 Pages)