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 maximum number of subnets that can be created from a Class B network using a /30 subnet mask?
A.
64
B.
128
C.
1024
D.
256
Show solution
Solution
Using a /30 subnet mask on a Class B network allows for 1024 subnets, as it borrows 2 bits from the host portion.
Correct Answer:
C
— 1024
Learn More →
Q. What is the maximum number of subnets that can be created from a Class B network with a /22 subnet mask?
Show solution
Solution
A /22 subnet mask allows for 2^(22-16) = 2^6 = 64 subnets from a Class B network.
Correct Answer:
C
— 64
Learn More →
Q. What is the maximum number of subnets that can be created from a Class B network with a subnet mask of 255.255.255.0?
A.
2
B.
16
C.
256
D.
1024
Show solution
Solution
Using a subnet mask of 255.255.255.0 on a Class B network allows for 256 subnets.
Correct Answer:
C
— 256
Learn More →
Q. What is the maximum number of subnets that can be created with a /22 subnet mask?
Show solution
Solution
A /22 subnet mask allows for 4 subnets when using the remaining bits for subnetting (2^(32-22) = 4).
Correct Answer:
A
— 4
Learn More →
Q. What is the maximum size of a URL in HTTP requests?
A.
2048 characters
B.
4096 characters
C.
1024 characters
D.
512 characters
Show solution
Solution
The maximum size of a URL in HTTP requests is typically 2048 characters, although this can vary by browser.
Correct Answer:
A
— 2048 characters
Learn More →
Q. What is the primary benefit of using private IP addresses?
A.
They are routable on the internet
B.
They conserve public IP addresses
C.
They provide better security
D.
They are easier to remember
Show solution
Solution
Private IP addresses are not routable on the internet, allowing organizations to conserve public IP addresses while using them internally.
Correct Answer:
B
— They conserve public IP addresses
Learn More →
Q. What is the primary function of a default gateway in a subnet?
A.
To route traffic within the subnet
B.
To connect to the internet
C.
To provide DHCP services
D.
To manage IP address assignments
Show solution
Solution
The default gateway is used to route traffic from a local subnet to destinations outside that subnet, typically to the internet.
Correct Answer:
B
— To connect to the internet
Learn More →
Q. What is the primary function of a router in a network?
A.
To connect devices within the same network
B.
To forward data packets between different networks
C.
To provide wireless connectivity
D.
To encrypt data
Show solution
Solution
A router's primary function is to forward data packets between different networks, directing traffic efficiently.
Correct Answer:
B
— To forward data packets between different networks
Learn More →
Q. What is the primary function of a switch in a network?
A.
Route packets between different networks
B.
Filter and forward frames within the same network
C.
Encrypt data for secure transmission
D.
Assign IP addresses to devices
Show solution
Solution
A switch filters and forwards frames within the same network, operating primarily at the Data Link Layer.
Correct Answer:
B
— Filter and forward frames within the same network
Learn More →
Q. What is the primary function of the 'User-Agent' header in an HTTP request?
A.
To specify the type of content
B.
To identify the client software making the request
C.
To manage session state
D.
To control caching behavior
Show solution
Solution
The 'User-Agent' header identifies the client software making the request, allowing the server to tailor responses accordingly.
Correct Answer:
B
— To identify the client software making the request
Learn More →
Q. What is the primary function of the ARP protocol?
A.
To resolve IP addresses to MAC addresses
B.
To assign IP addresses
C.
To manage routing tables
D.
To control error detection
Show solution
Solution
ARP (Address Resolution Protocol) is used to resolve IP addresses to their corresponding MAC addresses on a local network.
Correct Answer:
A
— To resolve IP addresses to MAC addresses
Learn More →
Q. What is the primary function of the Data Link layer in the OSI model?
A.
Routing packets
B.
Error detection and correction
C.
Establishing sessions
D.
Providing user interfaces
Show solution
Solution
The Data Link layer is responsible for error detection and correction as well as framing data for transmission.
Correct Answer:
B
— Error detection and correction
Learn More →
Q. What is the primary function of the Network Layer in the OSI model?
A.
Data formatting
B.
Routing packets
C.
Session management
D.
Encryption
Show solution
Solution
The primary function of the Network Layer (Layer 3) is to route packets across different networks.
Correct Answer:
B
— Routing packets
Learn More →
Q. What is the primary function of the Physical Layer in the OSI model?
A.
Data formatting
B.
Signal transmission
C.
Session management
D.
Error handling
Show solution
Solution
The Physical Layer (Layer 1) is responsible for the transmission of raw bitstreams over a physical medium.
Correct Answer:
B
— Signal transmission
Learn More →
Q. What is the primary function of the subnet mask in IP addressing?
A.
To identify the network and host portions of an IP address
B.
To encrypt data packets
C.
To assign IP addresses dynamically
D.
To route packets between networks
Show solution
Solution
The subnet mask is used to identify which part of an IP address refers to the network and which part refers to the host.
Correct Answer:
A
— To identify the network and host portions of an IP address
Learn More →
Q. What is the primary function of the TCP protocol in web communications?
A.
Data encryption
B.
Error detection
C.
Data segmentation
D.
Routing
Show solution
Solution
TCP (Transmission Control Protocol) is responsible for data segmentation, ensuring that data is sent and received in manageable pieces.
Correct Answer:
C
— Data segmentation
Learn More →
Q. What is the primary function of the Transport Layer in the OSI model?
A.
To establish, manage, and terminate connections
B.
To route packets between networks
C.
To provide error detection and correction
D.
To format and present data
Show solution
Solution
The primary function of the Transport Layer (Layer 4) is to establish, manage, and terminate connections between applications.
Correct Answer:
A
— To establish, manage, and terminate connections
Learn More →
Q. What is the primary purpose of a router in a network?
A.
To connect devices within the same network
B.
To filter traffic based on MAC addresses
C.
To route packets between different networks
D.
To provide a user interface for network management
Show solution
Solution
The primary purpose of a router is to route packets between different networks, making decisions based on IP addresses.
Correct Answer:
C
— To route packets between different networks
Learn More →
Q. What is the primary purpose of a switch in a network?
A.
To route packets between different networks
B.
To connect devices within the same network
C.
To provide internet access
D.
To encrypt data
Show solution
Solution
A switch connects devices within the same network, using MAC addresses to forward data to the correct destination.
Correct Answer:
B
— To connect devices within the same network
Learn More →
Q. What is the primary purpose of error control in data transmission?
A.
To increase bandwidth
B.
To ensure data integrity
C.
To reduce latency
D.
To enhance security
Show solution
Solution
Error control is primarily used to ensure data integrity by detecting and correcting errors in transmitted data.
Correct Answer:
B
— To ensure data integrity
Learn More →
Q. What is the primary purpose of HTTP methods like GET and POST?
A.
Data encryption
B.
Data retrieval and submission
C.
Session management
D.
Error handling
Show solution
Solution
HTTP methods like GET and POST are used for data retrieval and submission between clients and servers.
Correct Answer:
B
— Data retrieval and submission
Learn More →
Q. What is the primary purpose of routing in a network?
A.
To switch data frames
B.
To determine the best path for data packets
C.
To encrypt data
D.
To manage user sessions
Show solution
Solution
Routing is primarily used to determine the best path for data packets to travel across networks, ensuring efficient data delivery.
Correct Answer:
B
— To determine the best path for data packets
Learn More →
Q. What is the primary purpose of subnetting?
A.
To increase the number of available IP addresses
B.
To improve network performance and security
C.
To simplify network management
D.
To connect different networks
Show solution
Solution
Subnetting is primarily used to improve network performance and security by dividing a larger network into smaller, manageable segments.
Correct Answer:
B
— To improve network performance and security
Learn More →
Q. What is the primary purpose of the ARP protocol?
A.
To resolve IP addresses to MAC addresses
B.
To manage network traffic
C.
To establish a connection between devices
D.
To encrypt data packets
Show solution
Solution
The primary purpose of the ARP (Address Resolution Protocol) is 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 primary purpose of the HTTP GET method?
A.
To send data to the server
B.
To retrieve data from the server
C.
To delete data on the server
D.
To update data on the server
Show solution
Solution
The HTTP GET method is used to retrieve data from a specified resource on the server.
Correct Answer:
B
— To retrieve data from the server
Learn More →
Q. What is the primary purpose of the HTTP header?
A.
To store data
B.
To provide metadata about the request/response
C.
To encrypt data
D.
To route packets
Show solution
Solution
HTTP headers provide metadata about the request or response, such as content type, length, and caching policies.
Correct Answer:
B
— To provide metadata about the request/response
Learn More →
Q. What is the primary purpose of the HTTP protocol?
A.
To send emails
B.
To transfer files
C.
To request and transmit web pages
D.
To manage network devices
Show solution
Solution
The primary purpose of the HTTP protocol is to request and transmit web pages between clients and servers.
Correct Answer:
C
— To request and transmit web pages
Learn More →
Q. What is the primary purpose of the HTTP status code 404?
A.
Server Error
B.
Not Found
C.
OK
D.
Bad Request
Show solution
Solution
The HTTP status code 404 indicates that the requested resource could not be found on the server.
Correct Answer:
B
— Not Found
Learn More →
Q. What is the primary purpose of the Link Layer in the TCP/IP model?
A.
Data encryption
B.
Physical addressing
C.
Session establishment
D.
Data compression
Show solution
Solution
The primary purpose of the Link Layer in the TCP/IP model is to provide physical addressing and manage the physical connection.
Correct Answer:
B
— Physical addressing
Learn More →
Q. What is the primary purpose of the Physical layer in the OSI model?
A.
Data encryption
B.
Signal transmission
C.
Session establishment
D.
Data compression
Show solution
Solution
The primary purpose of the Physical layer (Layer 1) is to transmit raw bitstreams over a physical medium.
Correct Answer:
B
— Signal transmission
Learn More →
Showing 121 to 150 of 329 (11 Pages)