What is a computer network?
- A
A group of interconnected computers and devices
- B
A single computer with multiple users
- C
A type of software
- D
A peripheral device
Master Computer Networking with 120+ curated MCQs covering OSI, TCP/IP, IP addressing, routing, network security, and more. Perfect for exams, interviews, and placements.
What is a computer network?
A group of interconnected computers and devices
A single computer with multiple users
A type of software
A peripheral device
What is the full form of LAN?
Local Area Network
Large Area Network
Long Area Network
Limited Area Network
What is the full form of WAN?
Wide Area Network
Wireless Area Network
Wired Area Network
World Area Network
What is a protocol?
A set of rules for communication between devices
A hardware component
A type of software
A storage device
What is the purpose of a network topology?
Defines the physical or logical arrangement of devices
Defines the speed of the network
Defines the security of the network
Defines the type of cables used
Which of the following is a type of network topology?
Star
Ring
Bus
All of the above
What is the full form of OSI?
Open Systems Interconnection
Open Source Interconnection
Operating System Interface
Open Standard Interface
How many layers are in the OSI model?
5
6
7
8
Which layer of the OSI model is responsible for routing?
Network Layer
Transport Layer
Data Link Layer
Physical Layer
Which layer is responsible for error-free data delivery?
Transport Layer
Network Layer
Data Link Layer
Session Layer
Which layer deals with physical characteristics of the medium?
Physical Layer
Data Link Layer
Network Layer
Presentation Layer
Which layer is responsible for data encryption and compression?
Presentation Layer
Application Layer
Session Layer
Transport Layer
How many layers are in the TCP/IP model?
4
5
6
7
Which layer in TCP/IP corresponds to the OSI Network layer?
Internet Layer
Transport Layer
Application Layer
Network Access Layer
What protocol is used at the Transport layer of TCP/IP?
TCP
UDP
Both TCP and UDP
IP
Which layer of TCP/IP is responsible for process-to-process communication?
Application Layer
Transport Layer
Internet Layer
Network Access Layer
Which protocol is used for IP addressing?
IP
TCP
UDP
HTTP
What is the primary function of the Application layer in TCP/IP?
Provide user interfaces and services
Provide reliable data transfer
Provide logical addressing
Provide physical transmission
What is the size of an IPv4 address?
32 bits
64 bits
128 bits
16 bits
What is the size of an IPv6 address?
32 bits
64 bits
128 bits
256 bits
How many classes are there in IPv4 addressing?
3
4
5
6
Which IP address is a private IP address?
192.168.1.1
8.8.8.8
1.1.1.1
172.16.0.0
What is the default subnet mask for Class B IP address?
255.0.0.0
255.255.0.0
255.255.255.0
255.255.255.255
What is the loopback IP address?
127.0.0.1
0.0.0.0
255.255.255.255
192.168.0.1
What is subnetting?
Dividing a large network into smaller subnetworks
Combining multiple networks into one
Assigning IP addresses to devices
Securing the network
What is CIDR?
Classless Inter-Domain Routing
Classful Inter-Domain Routing
Classless Internet Data Routing
Classful Internet Data Routing
What is a subnet mask?
A 32-bit number that separates network and host parts
A 32-bit number that encrypts data
A 32-bit number that identifies a device
A 32-bit number that routes packets
What is the subnet mask for /24 prefix?
255.255.255.0
255.255.0.0
255.0.0.0
255.255.255.255
How many hosts can a /24 subnet support?
254
256
252
128
What is the purpose of a subnet mask?
To define the network and host portions of an IP address
To encrypt data
To route packets
To provide error detection
What is a router?
A device that forwards data packets between networks
A device that connects devices in a LAN
A device that amplifies signals
A device that stores network data
What is a routing table?
A table that stores network path information
A table that stores MAC addresses
A table that stores IP addresses
A table that stores device names
What is static routing?
Routes manually configured by the administrator
Routes learned automatically using protocols
Routes used for backup
Routes that never change
What is dynamic routing?
Routes learned automatically through routing protocols
Routes manually configured
Routes used for multicast
Routes that are fixed
Which routing protocol uses hop count as metric?
RIP
OSPF
BGP
EIGRP
What is the administrative distance of a static route?
1
0
90
110
Which protocol provides reliable, connection-oriented communication?
TCP
UDP
IP
ICMP
Which protocol is connectionless and unreliable?
UDP
TCP
HTTP
FTP
What is the port number for HTTP?
80
443
21
25
What is the port number for HTTPS?
443
80
8080
8443
What is the purpose of the TCP three-way handshake?
To establish a connection
To terminate a connection
To send data
To receive data
Which flag is used to terminate a TCP connection?
FIN
SYN
ACK
RST
Which device operates at the Data Link layer of OSI?
Switch
Router
Hub
Repeater
Which device operates at the Physical layer?
Hub
Switch
Router
Gateway
Which device is used to connect different network segments?
Bridge
Switch
Router
Gateway
What is a gateway?
A device that connects two different networks
A device that connects devices in a LAN
A device that amplifies signals
A device that stores data
What is a firewall?
A security device that filters network traffic
A device that routes data
A device that connects to the internet
A device that provides Wi-Fi
What is a modem?
A device that modulates and demodulates signals
A device that routes packets
A device that switches frames
A device that connects multiple devices
Which protocol is used for web browsing?
HTTP
FTP
SMTP
DNS
Which protocol is used for email delivery?
SMTP
HTTP
FTP
SNMP
Which protocol is used for file transfer?
FTP
HTTP
SMTP
DNS
What is the role of DNS?
To translate domain names to IP addresses
To encrypt data
To route packets
To provide error detection
Which protocol is used for remote login?
SSH
Telnet
FTP
SMTP
Which protocol is used for network management?
SNMP
HTTP
FTP
DNS
What does Wi-Fi stand for?
Wireless Fidelity
Wireless Fiber
Wireless Frequency
Wireless Filter
Which IEEE standard defines Wi-Fi?
802.11
802.3
802.15
802.16
What is the range of the 2.4 GHz band?
Longer range, lower speed
Shorter range, higher speed
Same range as 5 GHz
No difference
What is the maximum speed of 802.11ac?
1.3 Gbps
600 Mbps
11 Mbps
54 Mbps
What is SSID?
Service Set Identifier (network name)
Security Set Identifier
Signal Set Identifier
System Set Identifier
What is WPA used for?
Wireless security encryption
Wireless routing
Wireless signal amplification
Wireless device discovery
What is a firewall used for?
To block unauthorized access
To route packets
To assign IP addresses
To amplify signals
What is a VPN?
Virtual Private Network
Virtual Public Network
Very Private Network
Virtual Protocol Network
What is encryption?
Converting data into a coded form
Compressing data
Routing data
Amplifying data
What is a DDoS attack?
Distributed Denial of Service attack
Direct Denial of Service attack
Dynamic Denial of Service attack
Data Denial of Service attack
Which protocol is used for secure web browsing?
HTTPS
HTTP
FTP
SMTP
What is the purpose of SSL/TLS?
Encrypt data for secure transmission
Compress data
Route data
Amplify signals
Which command is used to test connectivity to a remote host?
ping
tracert
nslookup
ipconfig
Which command is used to trace the route to a destination?
tracert
ping
nslookup
netstat
Which command is used to display network configuration?
ipconfig
ping
tracert
nslookup
Which command is used to query DNS?
nslookup
ping
tracert
netstat
What is the purpose of the 'arp' command?
Display and modify the ARP cache
Test network connectivity
Trace route
Display IP configuration
What is the use of 'netstat' command?
Display network connections and listening ports
Test connectivity
Trace route
Query DNS
What is a PAN?
Personal Area Network
Public Area Network
Private Area Network
Protected Area Network
What is a MAN?
Metropolitan Area Network
Medium Area Network
Main Area Network
Managed Area Network
What is a VLAN?
Virtual Local Area Network
Very Large Area Network
Virtual Wide Area Network
Volatile Local Area Network
What is the typical range of a LAN?
Within a building or campus
Across a city
Across a country
Globally
What is the typical range of a WAN?
Across a country or continent
Within a building
Within a city
Within a room
What is a storage area network (SAN)?
A network dedicated to storage devices
A network for personal devices
A network for voice communication
A network for video streaming
What does DHCP stand for?
Dynamic Host Configuration Protocol
Domain Host Control Protocol
Data Host Configuration Protocol
Dynamic Hypertext Control Protocol
What is the purpose of DHCP?
Automatically assign IP addresses to devices
Translate domain names to IP
Route packets
Secure network
What does DNS stand for?
Domain Name System
Data Name System
Dynamic Name System
Digital Name System
What is the purpose of ARP?
Resolve IP addresses to MAC addresses
Resolve domain names to IP
Assign IP addresses
Route packets
What is the function of NAT?
Translate private IPs to public IPs
Translate domain names to IPs
Assign IP addresses
Secure network
What does SMTP stand for?
Simple Mail Transfer Protocol
Simple Message Transfer Protocol
Standard Mail Transfer Protocol
Secure Mail Transfer Protocol
What is a peer-to-peer network?
All computers are equal and share resources
A network with a central server
A network with a dedicated router
A network with no security
Which layer of OSI is responsible for establishing, managing, and terminating sessions?
Session Layer
Presentation Layer
Transport Layer
Application Layer
Which layer in TCP/IP corresponds to the OSI Data Link and Physical layers?
Network Access Layer
Internet Layer
Transport Layer
Application Layer
What is the binary equivalent of 255 in an IPv4 address?
11111111
00000000
11110000
00001111
What is the network address for IP 192.168.1.25/24?
192.168.1.0
192.168.1.24
192.168.1.16
192.168.0.0
What is the default gateway?
The router that connects the network to the internet
The IP address of a device
The subnet mask
The DNS server
Which of the following uses TCP?
FTP
DNS
SNMP
DHCP
What is a repeater?
A device that regenerates signals
A device that filters traffic
A device that routes packets
A device that assigns IP addresses
What is the default port for SSH?
22
23
21
25
What is the security protocol for Wi-Fi networks?
WPA2
WEP
Both A and B
SSL
What is a phishing attack?
A cyber attack using fake emails to steal information
A physical attack on network cables
An attack that floods the network
An attack that modifies data
What is the purpose of the 'traceroute' command?
Show the path packets take to reach a destination
Test network connectivity
Display routing table
Show ARP cache
What is a SAN?
Storage Area Network
System Area Network
Secure Area Network
Server Area Network
What does PDU stand for?
Protocol Data Unit
Packet Data Unit
Physical Data Unit
Process Data Unit
What is the difference between a hub and a switch?
Hub broadcasts to all ports; switch sends to specific port
Switch broadcasts; hub sends specific
Both work the same
Hub is faster
Which layer is responsible for flow control?
Transport Layer
Network Layer
Data Link Layer
Physical Layer
Which protocol is used for error reporting?
ICMP
TCP
UDP
IP
What is the broadcast address for 192.168.1.0/24?
192.168.1.255
192.168.1.0
192.168.1.1
192.168.0.255
What is the maximum number of subnets with /27 prefix?
8
16
32
64
What is the purpose of BGP?
Exterior gateway routing between autonomous systems
Interior routing within an autonomous system
Routing for small networks
Routing for wireless networks
What is the header size of TCP?
20 bytes (minimum)
24 bytes
8 bytes
16 bytes
What is a multilayer switch?
A switch that operates at multiple OSI layers
A switch with multiple ports
A switch that can route at layer 3
Both A and C
Which protocol is used for retrieving emails from a server?
POP3
IMAP
Both A and B
SMTP
What is the frequency range of Bluetooth?
2.4 GHz
5 GHz
900 MHz
1.8 GHz
What is a man-in-the-middle attack?
An attacker intercepts communication between two parties
An attacker floods the network
An attacker steals passwords
An attacker modifies data
What is the use of the 'telnet' command?
Remote connection to a device
Test network connectivity
Trace route
Display IP configuration
What is a campus network?
A network connecting buildings in a campus
A network connecting devices in a room
A network across a city
A network across a country
What does NTP stand for?
Network Time Protocol
Network Transfer Protocol
Network Transport Protocol
Network Translation Protocol
What is the difference between a public and private IP address?
Public IPs are routable on the internet; private IPs are not
Private IPs are routable; public IPs are not
Both are routable
Neither is routable
Which layer is responsible for MAC addressing?
Data Link Layer
Network Layer
Transport Layer
Physical Layer
Which protocol is used for network address translation?
NAT
ARP
DNS
DHCP
What is the class of IP address 10.0.0.1?
Class A
Class B
Class C
Class D
How many subnets and hosts per subnet does a /26 subnet provide for a Class C network?
4 subnets, 62 hosts each
4 subnets, 64 hosts each
2 subnets, 126 hosts each
8 subnets, 30 hosts each
What is a routing metric?
A value used to determine the best path
A type of route
A routing protocol
A network device
What is the window size in TCP?
The amount of data that can be sent before acknowledgment
The size of the TCP header
The number of connections
The size of the payload
What is an access point?
A device that allows wireless devices to connect to a wired network
A device that routes data
A device that amplifies signals
A device that stores data
Which protocol is used for streaming media?
RTP
HTTP
FTP
SMTP
What is the purpose of a digital certificate?
To verify the identity of a party
To encrypt data
To compress data
To route data
Explore our full collection of tutorials, notes, and interview guides to accelerate your learning journey.