Back to Practice OS & Networking

Networking Concepts - Practice MCQs for CCAT

50 Questions Section B: Programming OS & Networking

Networking Concepts Question Bank for C-CAT

Topic-wise Networking Concepts MCQs for CDAC C-CAT preparation with answers and explanations.

Q1.
OSI model has how many layers?
A7
B6
C5
D4
Show Answer & Explanation

Correct Answer: A - 7

OSI has 7 layers: Physical, Data Link, Network, Transport, Session, Presentation, Application.

Q2.
Which layer handles routing?
AData Link
BNetwork
CTransport
DSession
Show Answer & Explanation

Correct Answer: B - Network

Network Layer (Layer 3) handles routing and logical addressing.

Q3.
TCP is:
AConnectionless
BConnection-oriented
CNot reliable
DFaster than UDP
Show Answer & Explanation

Correct Answer: B - Connection-oriented

TCP is connection-oriented and provides reliable data transfer.

Q4.
UDP is:
AConnection-oriented
BConnectionless
CSlower than TCP
DAlways reliable
Show Answer & Explanation

Correct Answer: B - Connectionless

UDP is connectionless, faster but unreliable.

Q5.
IP address is which layer?
AData Link
BNetwork
CTransport
DApplication
Show Answer & Explanation

Correct Answer: B - Network

IP addresses are Network Layer (Layer 3) addresses.

Q6.
MAC address is which layer?
AData Link
BPhysical
CNetwork
DTransport
Show Answer & Explanation

Correct Answer: A - Data Link

MAC addresses are Data Link Layer (Layer 2) addresses.

Q7.
HTTP uses which transport protocol?
AUDP
BIP
CTCP
DICMP
Show Answer & Explanation

Correct Answer: C - TCP

HTTP uses TCP for reliable web page transfer.

Q8.
DNS uses port:
A21
B53
C23
D80
Show Answer & Explanation

Correct Answer: B - 53

DNS uses port 53 for domain name resolution.

Q9.
Subnet mask is used to:
AEncrypt data
BSpeed up transfer
CIdentify network and host portion
DCompress data
Show Answer & Explanation

Correct Answer: C - Identify network and host portion

Subnet mask separates network and host parts of IP address.

Q10.
ARP converts:
AMAC to IP
BIP to MAC
CDomain to IP
DIP to Domain
Show Answer & Explanation

Correct Answer: B - IP to MAC

ARP (Address Resolution Protocol) converts IP address to MAC address.

Q11.
Which layer provides end-to-end delivery?
ANetwork
BData Link
CTransport
DApplication
Show Answer & Explanation

Correct Answer: C - Transport

Transport layer provides end-to-end reliable data delivery between hosts.

Q12.
ICMP is used for:
AFile transfer
BEmail
CError reporting and diagnostics
DWeb browsing
Show Answer & Explanation

Correct Answer: C - Error reporting and diagnostics

ICMP (Internet Control Message Protocol) is used for error reporting and ping.

Q13.
Default gateway is:
ARouter connecting to other networks
BFirst computer in network
CDNS server
DWeb server
Show Answer & Explanation

Correct Answer: A - Router connecting to other networks

Default gateway is the router that forwards packets to other networks.

Q14.
NAT stands for:
ANode Address Transfer
BNetwork Access Terminal
CNetwork Address Translation
DNetwork Area Topology
Show Answer & Explanation

Correct Answer: C - Network Address Translation

NAT translates private IP addresses to public IP addresses and vice versa.

Q15.
DHCP provides:
ADomain names
BAutomatic IP address assignment
CWeb pages
DEmail service
Show Answer & Explanation

Correct Answer: B - Automatic IP address assignment

DHCP (Dynamic Host Configuration Protocol) automatically assigns IP addresses.

Q16.
IPv6 address is how many bits?
A32
B64
C128
D256
Show Answer & Explanation

Correct Answer: C - 128

IPv6 addresses are 128 bits long, compared to 32 bits for IPv4.

Q17.
TCP three-way handshake uses:
AACK, SYN, FIN
BHELLO, READY, OK
CGET, POST, PUT
DSYN, SYN-ACK, ACK
Show Answer & Explanation

Correct Answer: D - SYN, SYN-ACK, ACK

TCP connection uses SYN, SYN-ACK, ACK for three-way handshake.

Q18.
Which protocol uses port 443?
AHTTP
BFTP
CSMTP
DHTTPS
Show Answer & Explanation

Correct Answer: D - HTTPS

HTTPS uses port 443 for secure web communication.

Q19.
Loopback address is:
A192.168.1.1
B255.255.255.255
C127.0.0.1
D0.0.0.0
Show Answer & Explanation

Correct Answer: C - 127.0.0.1

127.0.0.1 is the loopback address used to test network on local machine.

Q20.
Class A IP address range is:
A128.0.0.0 to 191.255.255.255
B0.0.0.0 to 127.255.255.255
C192.0.0.0 to 223.255.255.255
D224.0.0.0 to 239.255.255.255
Show Answer & Explanation

Correct Answer: B - 0.0.0.0 to 127.255.255.255

Class A addresses range from 0.0.0.0 to 127.255.255.255 (first octet 0-127).

Q21.
How many layers are in the OSI model?
A4
B5
C6
D7
Show Answer & Explanation

Correct Answer: D - 7

The OSI (Open Systems Interconnection) model has 7 layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application.

Q22.
Which layer of the OSI model is responsible for routing and logical addressing?
AData Link Layer
BNetwork Layer
CTransport Layer
DSession Layer
Show Answer & Explanation

Correct Answer: B - Network Layer

The Network Layer (Layer 3) handles routing, logical addressing (IP addresses), and path determination. Routers operate at this layer.

Q23.
What is the primary difference between TCP and UDP?
ATCP is faster than UDP
BUDP uses IP addresses; TCP uses MAC addresses
CTCP is connection-oriented and reliable; UDP is connectionless and unreliable
DThere is no difference
Show Answer & Explanation

Correct Answer: C - TCP is connection-oriented and reliable; UDP is connectionless and unreliable

TCP (Transmission Control Protocol) is connection-oriented, provides reliable delivery with error checking and ordering. UDP (User Datagram Protocol) is connectionless, faster but doesn't guarantee delivery or order.

Q24.
What is the purpose of DNS?
ATo encrypt network traffic
BTo manage network cables
CTo route packets
DTo translate domain names to IP addresses
Show Answer & Explanation

Correct Answer: D - To translate domain names to IP addresses

DNS (Domain Name System) translates human-readable domain names (like www.example.com) into IP addresses (like 93.184.216.34) that computers use to identify each other on the network.

Q25.
Which protocol is used for sending email?
AHTTP
BFTP
CDNS
DSMTP
Show Answer & Explanation

Correct Answer: D - SMTP

SMTP (Simple Mail Transfer Protocol) is used for sending emails between servers. POP3 and IMAP are used for retrieving emails from a mail server.

Q26.
What is a subnet mask used for?
ATo encrypt data
BTo speed up data transfer
CTo divide an IP address into network and host portions
DTo authenticate users
Show Answer & Explanation

Correct Answer: C - To divide an IP address into network and host portions

A subnet mask is used to divide an IP address into network and host portions. It helps routers determine which part of an IP address refers to the network and which part refers to the specific host.

Q27.
What is the default port number for HTTP?
A21
B25
C443
D80
Show Answer & Explanation

Correct Answer: D - 80

HTTP uses port 80 by default. HTTPS uses port 443, FTP uses port 21, and SMTP uses port 25.

Q28.
How many layers does the TCP/IP model have?
A4
B5
C6
D7
Show Answer & Explanation

Correct Answer: A - 4

The TCP/IP model has 4 layers: Network Access (Link), Internet, Transport, and Application. It is a simplified version of the OSI model.

Q29.
What is ARP (Address Resolution Protocol) used for?
AResolving IP addresses to MAC addresses
BResolving domain names to IP addresses
CRouting packets
DEncrypting data
Show Answer & Explanation

Correct Answer: A - Resolving IP addresses to MAC addresses

ARP maps an IP address to a physical (MAC) address on a local network. When a device knows the IP address but needs the MAC address to send a frame, it broadcasts an ARP request.

Q30.
What is the maximum number of hosts in a /24 subnet?
A256
B254
C255
D128
Show Answer & Explanation

Correct Answer: B - 254

A /24 subnet has 8 host bits, giving 28 = 256 addresses. Subtracting the network address and broadcast address, the usable host addresses are 256 - 2 = 254.

Q31.
Which device operates at the Data Link Layer of the OSI model?
ARouter
BHub
CGateway
DSwitch
Show Answer & Explanation

Correct Answer: D - Switch

A switch operates at the Data Link Layer (Layer 2) and uses MAC addresses to forward frames to the correct port. A router operates at Layer 3, and a hub operates at Layer 1.

Q32.
What is the purpose of DHCP?
ATo translate domain names
BTo route packets between networks
CTo encrypt network traffic
DTo automatically assign IP addresses to devices on a network
Show Answer & Explanation

Correct Answer: D - To automatically assign IP addresses to devices on a network

DHCP (Dynamic Host Configuration Protocol) automatically assigns IP addresses and other network configuration parameters to devices, eliminating the need for manual IP configuration.

Q33.
What is the three-way handshake in TCP?
ASYN, SYN-ACK, ACK sequence used to establish a connection
BA data encryption process
CA process for IP address assignment
DA routing protocol
Show Answer & Explanation

Correct Answer: A - SYN, SYN-ACK, ACK sequence used to establish a connection

TCP uses a three-way handshake to establish a connection: the client sends SYN, the server responds with SYN-ACK, and the client sends ACK. This ensures both sides are ready to communicate.

Q34.
What is the difference between a hub and a switch?
AA hub is smarter than a switch
BThere is no difference
CA switch is slower than a hub
DA hub broadcasts to all ports; a switch forwards to the specific port using MAC addresses
Show Answer & Explanation

Correct Answer: D - A hub broadcasts to all ports; a switch forwards to the specific port using MAC addresses

A hub broadcasts incoming data to all ports (Layer 1 device), while a switch learns MAC addresses and forwards data only to the specific port where the destination device is connected (Layer 2 device).

Q35.
What is NAT (Network Address Translation)?
AA method of mapping private IP addresses to public IP addresses
BA routing protocol
CA type of firewall
DA DNS service
Show Answer & Explanation

Correct Answer: A - A method of mapping private IP addresses to public IP addresses

NAT translates private IP addresses used within a local network to a public IP address for communication over the internet. It helps conserve the limited number of public IPv4 addresses.

Q36.
Which class of IP address has a default subnet mask of 255.255.255.0?
AClass C
BClass B
CClass A
DClass D
Show Answer & Explanation

Correct Answer: A - Class C

Class C IP addresses (192.0.0.0 to 223.255.255.255) have a default subnet mask of 255.255.255.0 (/24), allowing for 254 hosts per network.

Q37.
What is ICMP used for?
ATransferring files
BAssigning IP addresses
CEncrypting data
DSending error messages and operational information about network conditions
Show Answer & Explanation

Correct Answer: D - Sending error messages and operational information about network conditions

ICMP (Internet Control Message Protocol) is used for sending error messages (e.g., destination unreachable) and operational information. The ping and traceroute utilities use ICMP.

Q38.
What is the purpose of the Transport Layer in the OSI model?
AEnd-to-end communication, error recovery, and flow control
BPhysical data transmission
CRouting between networks
DData encryption
Show Answer & Explanation

Correct Answer: A - End-to-end communication, error recovery, and flow control

The Transport Layer (Layer 4) provides end-to-end communication between hosts, including segmentation, error detection/recovery, flow control, and multiplexing. TCP and UDP operate at this layer.

Q39.
Given the IP address 192.168.1.0/26, how many subnets and hosts per subnet are possible?
A4 subnets, 64 hosts each
B2 subnets, 126 hosts each
C8 subnets, 30 hosts each
D4 subnets, 62 hosts each
Show Answer & Explanation

Correct Answer: D - 4 subnets, 62 hosts each

A /26 subnet uses 2 additional bits for subnetting from a /24 network, giving 22 = 4 subnets. Each subnet has 6 host bits: 26 - 2 = 62 usable hosts per subnet.

Q40.
What is a VLAN?
AA logical grouping of devices on a network regardless of physical location
BA type of VPN
CA type of router
DA wireless network
Show Answer & Explanation

Correct Answer: A - A logical grouping of devices on a network regardless of physical location

A VLAN (Virtual Local Area Network) is a logical grouping of devices that can communicate as if they were on the same physical LAN, regardless of their actual physical location. It improves security and reduces broadcast traffic.

Q41.
Which HTTP method is used to submit data to a server?
APOST
BGET
CDELETE
DHEAD
Show Answer & Explanation

Correct Answer: A - POST

The POST method is used to submit data to a server for processing (e.g., form submissions). GET is used to retrieve data, DELETE to remove resources, and HEAD to get headers only.

Q42.
What is the difference between IPv4 and IPv6?
AIPv4 uses 128-bit addresses; IPv6 uses 32-bit
BIPv6 is slower than IPv4
CIPv4 uses 32-bit addresses; IPv6 uses 128-bit addresses
DThere is no difference
Show Answer & Explanation

Correct Answer: C - IPv4 uses 32-bit addresses; IPv6 uses 128-bit addresses

IPv4 uses 32-bit addresses (about 4.3 billion addresses), while IPv6 uses 128-bit addresses (about 3.4×1038 addresses). IPv6 was developed to address the exhaustion of IPv4 addresses.

Q43.
What does the TTL field in an IP packet indicate?
ATotal transfer length
BTime to live in seconds
CThe maximum number of hops the packet can traverse before being discarded
DTotal time for loading
Show Answer & Explanation

Correct Answer: C - The maximum number of hops the packet can traverse before being discarded

TTL (Time to Live) specifies the maximum number of router hops a packet can traverse. Each router decrements the TTL by 1. When TTL reaches 0, the packet is discarded, preventing infinite routing loops.

Q44.
Which protocol is used to transfer files over the internet?
AFTP
BHTTP
CSMTP
DSNMP
Show Answer & Explanation

Correct Answer: A - FTP

FTP (File Transfer Protocol) is specifically designed for transferring files between systems over a network. It uses two connections: a control connection (port 21) and a data connection (port 20).

Q45.
What is a MAC address?
AA logical address assigned by software
BA 48-bit hardware address permanently assigned to a network interface
CAn IP address for Mac computers
DA temporary network address
Show Answer & Explanation

Correct Answer: B - A 48-bit hardware address permanently assigned to a network interface

A MAC (Media Access Control) address is a 48-bit (6-byte) hardware address burned into the network interface card (NIC). It is unique and used for communication within the same local network.

Q46.
What is the purpose of the Presentation Layer in the OSI model?
AManaging user sessions
BRouting packets
CData translation, encryption, and compression
DPhysical transmission
Show Answer & Explanation

Correct Answer: C - Data translation, encryption, and compression

The Presentation Layer (Layer 6) handles data translation (format conversion), data encryption/decryption, and data compression. It ensures data from the application layer is in a readable format.

Q47.
What is a firewall?
AA device for increasing network speed
BA DNS server
CA type of router
DA security system that monitors and controls incoming and outgoing network traffic based on rules
Show Answer & Explanation

Correct Answer: D - A security system that monitors and controls incoming and outgoing network traffic based on rules

A firewall is a network security device or software that monitors and controls incoming and outgoing network traffic based on predetermined security rules, creating a barrier between trusted and untrusted networks.

Q48.
What is the sliding window protocol used for?
AFlow control and reliable data transfer by allowing multiple frames to be sent before requiring acknowledgment
BEncryption
CIP addressing
DDomain name resolution
Show Answer & Explanation

Correct Answer: A - Flow control and reliable data transfer by allowing multiple frames to be sent before requiring acknowledgment

The sliding window protocol is used for flow control and reliable data transfer. It allows the sender to transmit multiple frames before needing an acknowledgment, improving throughput compared to stop-and-wait.

Q49.
Which layer of the OSI model handles end-to-end error detection and correction?
APhysical Layer
BTransport Layer
CData Link Layer
DApplication Layer
Show Answer & Explanation

Correct Answer: B - Transport Layer

The Transport Layer (Layer 4) provides end-to-end error detection and correction. TCP uses checksums, sequence numbers, and acknowledgments to ensure reliable data delivery between endpoints.

Q50.
What is HTTPS?
AA faster version of HTTP
BHTTP with encryption using SSL/TLS for secure communication
CA protocol for large file transfers
DA type of DNS
Show Answer & Explanation

Correct Answer: B - HTTP with encryption using SSL/TLS for secure communication

HTTPS (HTTP Secure) is HTTP with encryption using SSL/TLS protocols. It ensures that data transferred between the browser and server is encrypted, preventing eavesdropping and tampering. It uses port 443.

Showing 1-10 of 50 questions