50 Computer Networks MCQs with Answers
Question 1 |

Network layer – 4 times and Data link layer – 4 times | |
Network layer – 4 times and Data link layer – 3 times | |
Network layer – 4 times and Data link layer – 6 times | |
Network layer – 2 times and Data link layer – 6 times |
Discuss it

Question 2 |
Segment | |
Datagram | |
Message | |
Frame |
Discuss it
The Layer 1 (Physical Layer) PDU is the bit or, more generally, symbol The Layer 2 (Data Link Layer) PDU is the frame. The Layer 3 (Network Layer) PDU is the packet. The Layer 4 (Transport Layer) PDU is the segment for TCP or the datagram for UDP. The Layer 5 (Application Layer) PDU is the data or message.
Question 3 |
1005 ms | |
1010 ms | |
3000 ms | |
3003 ms |
Discuss it
Question 4 |

(3, 2, 0, 2, 5) | |
(3, 2, 0, 2, 6) | |
(7, 2, 0, 2, 5) | |
(7, 2, 0, 2, 6) |
Discuss it
See Question 3 of http://www.geeksforgeeks.org/computer-networks-set-3/
Question 5 |
0 | |
1 | |
2 | |
3 |
Discuss it
Question 6 |

A | |
B | |
C | |
D |
Discuss it
Question 7 |
Prefix Output Interface Identifier 131.16.0.0/12 3 131.28.0.0/14 5 131.19.0.0/16 2 131.22.0.0/15 1The identifier of the output interface on which this packet will be forwarded is ______.
1 | |
2 | |
3 | |
5 |
Discuss it
Question 8 |
C1 and C2 both assume they are on the same network | |
C2 assumes C1 is on same network, but C1 assumes C2 is on a different network | |
C1 assumes C2 is on same network, but C2 assumes C1 is on a different network | |
C1 and C2 both assume they are on different networks. |
Discuss it
Question 9 |
2N | |
N(N – 1) | |
N(N – 1)/2 | |
(N – 1)2 |
Discuss it
Question 10 |
Consider the following routing table at an IP router For each IP address in Group-I identify the correct choice of the next hop from Group-II using the entries from the routing table above.
List-I List-II A. 128.96.171.92 1. Interface 0 B. 128.96.167.151 2. Interface 1 C. 128.96.163.121 3. R2 D. 128.96.165.121 4. R3 5. R4 Codes: A B C D (a) 1 3 5 4 (b) 1 4 2 5 (c) 2 3 4 5 (d) 2 3 5 4
a | |
b | |
c | |
d |
Discuss it
Taking the 1st IP Address: 128.96.171.92
Bitwise AND between 128.96.171.92 and 255.255.254.0 we get the subnet ID as follows:25525511111110012896101010119212896101010100
∴ Subnet ID = 128.96.170.0
∴ 128.96.171.92 will forward to interface 0
Taking the 2nd IP Address: 128.96.167.151
Bitwise AND between 128.96.167.151 and 255.255.254.0 we get, 255255111111100128961010011115112896101001100
∴ Subnet ID = 128.96.166.0
∴ 128.96.167.151 will forward to interface R2
Taking the 3rd IP Address: 128.96.163.151
Bitwise AND between 128.96.167.151 and 255.255.254.0 we get, 255255111111100128961010001115112896101000100
∴ Subnet ID = 128.96.162.0 (Doesn’t match with any given interface)
Now, Bitwise AND between 128.96.167.151 and 255.255.252.0 we get, 255255111111000128961010001115112896101000000
∴ Subnet ID = 128.96.160.0 (Doesn’t match with any given interface)
∴ 128.96.163.151 will forward to default interface R4
Taking the last IP Address: 128.96.164.121
Bitwise AND between 128.96.164.121 and 255.255.254.0 we get, 255255111111100128961010010012112896101001000
∴ Subnet ID = 128.96.164.0
∴ 128.96.167.151 will forward to interface R3
∴ Option (A) is the correct answer.