CIDR Notation questions

Q56

GATE CS 2026 CS-1IPv4MSQ2 marks
An ISP having an address block 202.16.0.0/15 assigns a block of 6000 IP addresses to a client, using the classless internet domain routing (CIDR) super-netting approach. Which of the following address blocks can be assigned by the ISP?
More than one option can be correct.
Show answer without attempting

Answer: A, B, C

Q33

GATE CS 2026 CS-2IPv4NAT1 mark
If an IP network uses a subnet mask of 255.255.240.0, the maximum number of IP addresses that can be assigned to network interfaces is __________. (answer in integer)
Show answer without attempting

Answer: 4094

Q38

GATE CS 2024 CS-2IPv4MCQ2 marks−2/3 if wrong
Which one of the following CIDR prefixes exactly represents the range of IP addresses 10.12.2.0 to 10.12.3.255?
Show answer without attempting

Answer: A

Q65

GATE CS 2023 CSIPv4NAT2 marks
The forwarding table of a router is shown below.
Subnet NumberSubnet MaskInterface ID
200.150.0.0255.255.0.01
200.150.64.0255.255.224.02
200.150.68.0255.255.255.03
200.150.68.64255.255.255.2244
Default0
A packet addressed to a destination address 200.150.68.118 arrives at the router. It will be forwarded to the interface with ID ____________.
Show answer without attempting

Answer: 3

Q55

GATE CS 2022 CSIPv4MSQ2 marks
Consider routing table of an organization's router shown below:
Subnet NumberSubnet MaskNext Hop
12.20.164.0255.255.252.0R1
12.20.170.0255.255.254.0R2
12.20.168.0255.255.254.0Interface 0
12.20.166.0255.255.254.0Interface 1
defaultR3
Which of the following prefixes in CIDR notation can be collectively used to correctly aggregate all of the subnets in the routing table?
More than one option can be correct.
Show answer without attempting

Answer: B, D

Q38

GATE CS 2020 CSIPv4MCQ2 marks−2/3 if wrong
An organization requires a range of IP addresses to assign one to each of its 1500 computers. The organization has approached an Internet Service Provider (ISP) for this task. The ISP uses CIDR and serves the requests from the available IP address space 202.61.0.0/17. The ISP wants to assign an address space to the organization which will minimize the number of routing entries in the ISP’s router using route aggregation. Which of the following address spaces are potential candidates from which the ISP can allot any one to the organization?

I. 202.61.84.0/21
II. 202.61.104.0/21
III. 202.61.64.0/21
IV. 202.61.144.0/21
Show answer without attempting

Answer: B

Q28

GATE CS 2019 CSIPv4MCQ2 marks−2/3 if wrong
Consider three machines M, N, and P with IP addresses 100.10.5.2, 100.10.5.5, and 100.10.5.6 respectively. The subnet mask is set to 255.255.255.252 for all the three machines. Which one of the following is true?
Show answer without attempting

Answer: C

Q46

GATE CS 2015 CS-3IPv4NAT2 marks
In the network 200.10.11.144/27, the fourth octet (in decimal) of the last IP address of the network which can be assigned to a host is ____________.
Show answer without attempting

Answer: 158

Q36

GATE CS 2015 CS-2IPv4MCQ2 marks−2/3 if wrong
Consider the following routing table at an IP router:
Network No.Net MaskNext Hop
128.96.170.0255.255.254.0Interface 0
128.96.168.0255.255.254.0Interface 1
128.96.166.0255.255.254.0R2
128.96.164.0255.255.252.0R3
0.0.0.0DefaultR4
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.

Group I
i) 128.96.171.92
ii) 128.96.167.151
iii) 128.96.163.151
iv) 128.96.165.121

Group II
a) Interface 0
b) Interface 1
c) R2
d) R3
e) R4
Show answer without attempting

Answer: A

Q26

GATE CS 2014 CS-3IPv4NAT2 marks
An IP router implementing Classless Inter-domain Routing (CIDR) receives a packet with address 131.23.151.76. The router’s routing table has the following entries:
PrefixOutput Interface Identifier
131.16.0.0/123
131.28.0.0/145
131.19.0.0/162
131.22.0.0/151
The identifier of the output interface on which this packet will be forwarded is ______.
Show answer without attempting

Answer: 1

Q34

GATE CS 2012 CSIPv4MCQ2 marks−2/3 if wrong
An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: 245.248.128.0/20. The ISP wants to give half of this chunk of addresses to Organization A, and a quarter to Organization B, while retaining the remaining with itself. Which of the following is a valid allocation of addresses to A and B?
Show answer without attempting

Answer: A

0/110 correct0 marks

Related topics in IPv4