Start learning →

GATE CSE Computer Networks — practice questions

Explore 14 free Computer Networks questions in GATE CSE Computer Science. Open each question or exercise to read its content, reference answers and available explanation.

Practise Computer Networks with Quill →

Computer Networks questions and exercises with answers

Showing questions 1–14 of 14.

Worked practice questions

The TCP/IP protocol suite is typically organised into how many layers?

  1. 2 layers (Link, Application)
  2. 4 layers (Link, IP, Transport, App)
  3. 7 layers (OSI model)
  4. 10 layers, modern stack
Show answer and solution

Correct answer: B. 4 layers (Link, IP, Transport, App)

1. RFC 1180 describes the TCP/IP suite as a 4-LAYER stack: - Application (HTTP, SMTP, DNS, FTP) - Transport (TCP, UDP) - Internet (IP, ICMP, ARP) - Network Interface / Link (Ethernet, Wi-Fi) 2. CONTRAST with the OSI 7-layer model (option C): TCP/IP collapses several OSI layers. 3. The simplicity of the 4-layer model is partly why TCP/IP won out over OSI in practice. 4. Options A and D are not standard models. _Source: RFC 1180 "A TCP/IP Tutorial", §2 (TCP/IP Overview)._

Open this question →

An IPv4 address consists of

  1. 32 bits, four octets (e.g. 192.168.1.1)
  2. 16 bits, two octets
  3. 64 bits, eight octets
  4. 128 bits (the IPv6 length)
Show answer and solution

Correct answer: A. 32 bits, four octets (e.g. 192.168.1.1)

1. IPv4 addresses are 32 BITS long, conventionally written as four DECIMAL octets separated by dots (e.g. 192.168.1.1). 2. Each octet is 8 bits (0-255 in decimal). 3. Total address space: $2^{32} \approx 4.3$ billion addresses — exhausted around 2011, prompting IPv6 transition. 4. Option D refers to IPv6 (128 bits). Options B, C are non-standard. _Source: RFC 1180 "A TCP/IP Tutorial", §5 (Internet Protocol — Addressing)._

Open this question →

ARP (Address Resolution Protocol) is used to

  1. translate domain names to IP addresses
  2. translate IP addresses to MAC (Ethernet) addresses
  3. establish a TCP connection
  4. encrypt traffic
Show answer and solution

Correct answer: B. translate IP addresses to MAC (Ethernet) addresses

1. RFC 1180 §4 explains ARP: when host A wants to send to IP B on the same LAN, it needs B's HARDWARE (MAC/Ethernet) address. 2. ARP request: A broadcasts 'who has IP $X$?' to all on the LAN. 3. ARP reply: host $X$ responds with its MAC. 4. The mapping is cached in the ARP table for efficiency. 5. Option A describes DNS, not ARP. Option C is the 3-way handshake. Option D is unrelated. _Source: RFC 1180 "A TCP/IP Tutorial", §4 (ARP)._

Open this question →

How to practise

  1. Choose a Computer Networks question and try to work out your answer.
  2. Open the question to check the correct answer and read its worked solution.
  3. Continue in the app for bite-sized lessons, explanations and review with Quill. You can start without creating an account.

More Computer Science topics