OS & Networking

Networking Concepts — Practice MCQs for CCAT

20 Questions Section B: Programming OS & Networking

Practice 20 Networking Concepts multiple-choice questions designed for CDAC CCAT exam preparation. Click "Show Answer" to reveal the correct option with detailed explanation.

Q1.
OSI model has how many layers?
A5
B6
C7
D4
Show Answer & Explanation

Correct Answer: C — 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?
APhysical
BData Link
CNetwork
DTransport
Show Answer & Explanation

Correct Answer: B — Data Link

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

Q7.
HTTP uses which transport protocol?
AUDP
BTCP
CIP
DICMP
Show Answer & Explanation

Correct Answer: B — TCP

HTTP uses TCP for reliable web page transfer.

Q8.
DNS uses port:
A21
B23
C53
D80
Show Answer & Explanation

Correct Answer: C — 53

DNS uses port 53 for domain name resolution.

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

Correct Answer: B — Identify network and host portion

Subnet mask separates network and host parts of IP address.

Q10.
ARP converts:
AIP to MAC
BMAC to IP
CDomain to IP
DIP to Domain
Show Answer & Explanation

Correct Answer: A — IP to MAC

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

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

Correct Answer: B — Transport

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

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

Correct Answer: B — Error reporting and diagnostics

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

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

Correct Answer: B — Router connecting to other networks

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

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

Correct Answer: A — 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
BSYN, SYN-ACK, ACK
CGET, POST, PUT
DHELLO, READY, OK
Show Answer & Explanation

Correct Answer: B — SYN, SYN-ACK, ACK

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

Q18.
Which protocol uses port 443?
AHTTP
BFTP
CHTTPS
DSMTP
Show Answer & Explanation

Correct Answer: C — HTTPS

HTTPS uses port 443 for secure web communication.

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

Correct Answer: B — 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:
A0.0.0.0 to 127.255.255.255
B128.0.0.0 to 191.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: A — 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).