Computer Networking MCQs

Computer

Computer Networking MCQs

Practice Computer Networking MCQs covering LAN, MAN, WAN, PAN, topology, modem, router, hub, switch and IP address concepts.

325
Total Questions

Practice Questions

Page 8 of 17
Question #141
What is the maximum number of hosts in a Class B network?
A. 16,777,214
B. 65,536
C. 65,534
D. 254

Correct Answer: Option C


Explanation:
Class B has 16 host bits, giving 2^16 - 2 = 65,534 usable hosts.

This question belongs to: Computer Computer Networking
Question #142
Which network topology is most resistant to cable failure?
A. Star
B. Ring
C. Mesh
D. Bus

Correct Answer: Option C


Explanation:
Mesh provides multiple redundant paths, so a single cable failure does not disconnect the network.

This question belongs to: Computer Computer Networking
Question #143
What is the purpose of the TTL (Time-to-Live) field in an IP packet?
A. To indicate packet length
B. To prioritize packets
C. To encrypt the packet
D. To prevent packets from looping indefinitely

Correct Answer: Option D


Explanation:
TTL limits the lifespan of a packet; each hop decrements it, and when it reaches 0, the packet is discarded.

This question belongs to: Computer Computer Networking
Question #144
Which protocol is used for network address translation?
A. ARP
B. DHCP
C. DNS
D. NAT

Correct Answer: Option D


Explanation:
NAT translates private addresses to public ones, allowing multiple devices to share a single public IP.

This question belongs to: Computer Computer Networking
Question #145
What is a default gateway in a network?
A. The DHCP server
B. The network switch
C. The device that routes traffic to other networks
D. The primary DNS server

Correct Answer: Option C


Explanation:
The default gateway is a router that connects the local network to external networks.

This question belongs to: Computer Computer Networking
Question #146
Which type of network covers a building or campus?
A. PAN
B. LAN
C. MAN
D. WAN

Correct Answer: Option B


Explanation:
LAN typically spans a single building or campus.

This question belongs to: Computer Computer Networking
Question #147
What is the main function of a router's routing protocol?
A. To resolve MAC addresses
B. To assign IP addresses
C. To exchange routing information with other routers
D. To filter traffic

Correct Answer: Option C


Explanation:
Routing protocols (e.g., OSPF, BGP) allow routers to share information about network paths.

This question belongs to: Computer Computer Networking
Question #148
Which of the following is a characteristic of a MAN?
A. Uses microwave links
B. Covers a country
C. Covers a large city
D. Covers a room

Correct Answer: Option C


Explanation:
MAN spans a metropolitan area, larger than LAN but smaller than WAN.

This question belongs to: Computer Computer Networking
Question #149
What is the role of a network bridge?
A. To amplify signals
B. To connect two network segments and filter frames
C. To connect to the Internet
D. To assign IP addresses

Correct Answer: Option B


Explanation:
Bridges connect segments and filter traffic to reduce collisions.

This question belongs to: Computer Computer Networking
Question #150
Which protocol is used to send a message from one host to many hosts?
A. Broadcast
B. Anycast
C. Unicast
D. Multicast

Correct Answer: Option D


Explanation:
Multicast sends data to a group of hosts interested in the traffic.

This question belongs to: Computer Computer Networking
Question #151
What is the purpose of an SNMP (Simple Network Management Protocol)?
A. To assign IP addresses
B. To route packets
C. To manage and monitor network devices
D. To transfer files

Correct Answer: Option C


Explanation:
SNMP is used for network management, monitoring devices like routers and switches.

This question belongs to: Computer Computer Networking
Question #152
Which IP address class has the first bit as 0?
A. Class B
B. Class C
C. Class D
D. Class A

Correct Answer: Option D


Explanation:
Class A addresses have the first bit as 0, ranging from 0.0.0.0 to 127.255.255.255.

This question belongs to: Computer Computer Networking
Question #153
What is a VLAN used for?
A. To provide wireless connectivity
B. To route between networks
C. To increase bandwidth
D. To segment a network logically

Correct Answer: Option D


Explanation:
VLANs logically divide a network into separate broadcast domains.

This question belongs to: Computer Computer Networking
Question #154
Which of the following is a remote access protocol?
A. SMTP
B. DNS
C. Telnet
D. FTP

Correct Answer: Option C


Explanation:
Telnet is a remote terminal protocol (though insecure; SSH is preferred).

This question belongs to: Computer Computer Networking
Question #155
What is the purpose of an Ethernet frame's preamble?
A. To synchronize the sender and receiver
B. To carry data
C. To indicate the frame length
D. To provide error detection

Correct Answer: Option A


Explanation:
The preamble is a 7-byte pattern for synchronization and clock alignment.

This question belongs to: Computer Computer Networking
Question #156
Which topology uses a token to control transmission and avoid collisions?
A. Wi-Fi
B. Token Ring
C. FDDI
D. Ethernet

Correct Answer: Option B


Explanation:
Token Ring networks use token passing to regulate access, eliminating collisions.

This question belongs to: Computer Computer Networking
Question #157
What is the role of a firewall in a network?
A. To protect against unauthorized access
B. To route packets
C. To boost signal
D. To assign IP addresses

Correct Answer: Option A


Explanation:
Firewalls enforce security policies by blocking unauthorized traffic.

This question belongs to: Computer Computer Networking
Question #158
Which of the following is an example of a broadcast address?
A. 192.168.1.255
B. 127.0.0.1
C. 255.255.255.0
D. 192.168.1.1

Correct Answer: Option A


Explanation:
In a /24 network, the broadcast address is the last address in the subnet, e.g., 192.168.1.255.

This question belongs to: Computer Computer Networking
Question #159
What is the main advantage of a star topology?
A. Fault-tolerant
B. High redundancy
C. Easy to troubleshoot
D. Low cost

Correct Answer: Option C


Explanation:
Star topology simplifies troubleshooting because each connection is independent.

This question belongs to: Computer Computer Networking
Question #160
Which protocol is used for file transfer with authentication and encryption?
A. TFTP
B. HTTP
C. SFTP
D. FTP

Correct Answer: Option C


Explanation:
SFTP (SSH File Transfer Protocol) provides secure file transfer with encryption.

This question belongs to: Computer Computer Networking