All mock tests are FREE till 31 December — register to save your progress
Paper 2 CS · UNIT 09 · MOCK TEST

Mock 4 – Network Layer: IP Addressing & Routing (Part 1)

Unit 9: Data Communication and Computer Networks · 21 questions · about 25 minutes. Press End Mock any time to see your score and the correct answers.

All 13 topic-wise mocks in this unit
0 / 21 answered 00:00
Q1. Identify the incorrect statements from the following regarding the protocols used in the TCP/IP protocol suite.
A. IP is a reliable connection less protocol.
B. ARP is used to find the physical address of a node given its logical address.
C. ICMP is used to send notification of datagram problems to the recipient of the message.
D. IGMP is used to facilitate simultaneous transmission of a message to a group of recipients.
Choose the correct answer from the options given below:
Q2. Match List I with List II
List IList II
A. Count to infinity problemI. Mobile Adhoc Networks
B. IEEE 802.16II. Distance vector routing
C. IEEE 802.15III. WiMAX
D. AODV protocolIV. Bluetooth
Q3. Arrange the following steps of the DHCP (Dynamic Host Configuration Protocol) process in the correct sequence.
A. DHCP ACK
B. DHCP DISCOVER
C. DHCP OFFER
D. DHCP REQUEST
E. Client receives IP configuration
Choose the correct answer from the options given below:
Q4. Match List I with List II
List IList II
(A) Representation of bits(I) Transport layer
(B) Physical Address(II) Physical layer
(C) Logical Address(III) Network layer
(D) Segmentation and reassembly(IV) Data link layer
Q5. Host A (on a TCP/IPv4 network) sends an IP datagram D to host B (also on a TCP/IPv4 network). Assume no error occurred during transmission of D. When D reaches B, which of the following header fields may differ from those of the original datagram D?
(A) TTL
(B) Checksum
(C) Fragment offset
(D) Source IP
(E) Destination IP
Choose the correct answer from the options given below:
Q6. Match List I (IP Address) with List II (Class)
List IList II
(A) 10.20.30.40(I) Class E
(B) 210.20.30.3(II) Class B
(C) 180.30.100.10(III) Class A
(D) 252.5.15.11(IV) Class C
Q7. A class B network on the Internet has a subnet mask of 255.255.248.0. What is the maximum number of hosts per subnet?
Q8. Two computers A and B are configured as follows: A has IP address 203.197.2.53 and subnet mask 255.255.128.0; B has IP address 203.197.75.201 and subnet mask 255.255.192.0. Which one of the following statements is true?
Q9. Consider the following statements:
(A) In IPv4 addressing, a block of addresses can be defined as x.y.z.t/n, in which x.y.z.t defines one of the addresses and /n defines the mask.
(B) The first address in the block can be found by setting the rightmost 32 − n bits to 0s.
(C) Class C addresses are used for multicast communication.
(D) There are five classes in IPv4 addressing.
(E) Supernetting combines several networks into one large network.
Choose the correct answer from the options given below:
Q10. Which of the following statements is/are NOT CORRECT?
(A) OSPF is based on the distance-vector routing protocol.
(B) Both link-state and distance-vector routing are based on the least-cost goal.
(C) BGP4 is based on the path-vector algorithm.
(D) Three-node instability can be avoided using split horizon combined with poison reverse.
(E) RIP is based on the link-state algorithm.
Choose the correct answer from the options given below:
Q11. Arrange the following steps in the correct order for a DHCP client to renew its IP lease with a DHCP server:
(a) DHCP client sends a DHCPREQUEST message
(b) DHCP server acknowledges the renewal with a DHCPACK message
(c) DHCP client checks the local lease timer and initiates renewal
(d) DHCP server updates its lease database
Choose the correct answer from the options given below:
Q12. Statement (I): In datagram networks, routers hold state information about connections.
Statement (II): In a virtual-circuit network, each virtual circuit requires router table space per connection.
In the light of the above statements, choose the most appropriate answer from the options given below:
Q13. Match List I with List II
List IList II
A. Physical LayerI. Transforming the raw bits into frames for transmission
B. Data Link LayerII. Control and monitoring of the subnet
C. Network LayerIII. Transmission of raw bits over the communication channel
D. Transport LayerIV. Transmission of data, connection-oriented or connectionless (datagrams)
Q14. Hosts P and Q are connected through a router R. The MTU of link P–R is 1500 bytes and of link R–Q is 820 bytes. A TCP segment of 1400 bytes is transferred from P to Q through R with IP identification 0x1234. The IP header is 20 bytes and the DF flag is not set. Which of the following statements are true?
A. Two fragments are created at R, and the IP datagram carrying the second fragment is 620 bytes.
B. If the second fragment is lost, R resends the fragment with IP identification 0x1234.
C. If the second fragment is lost, P has to resend the entire TCP segment.
D. The TCP destination port can be determined by analysing the second fragment only.
Choose the correct answer from the options given below:

Directions (Q96–100): An IP datagram has arrived with the following partial header information (in hexadecimal): 45000054 00030000 2006…

Q15. How many more routers can the packet travel to?

Directions (Q96–100): An IP datagram has arrived with the following partial header information (in hexadecimal): 45000054 00030000 2006…

Q16. What is the protocol of the payload being carried by the packet?
Q17. An IPv4 packet has arrived with the first few hexadecimal digits shown below. How many hops can this packet travel before being dropped, and to which upper-layer protocol does the data belong?
(54000018 00100110 040601…)₁₆
Q18. The sequence of fields in an IP datagram header will be:
A. Flags
B. Options
C. Protocol
D. Identification
E. Service type
Choose the correct answer from the options given below:
Q19. Which protocol is used to acquire the MAC address of a host whose IP address is known?
Q20. A network uses distance-vector routing. Router R has neighbours X, Y and Z at distances 3, 2 and 5. Their vectors report distances to router P of 7, 6 and 5, and to router Q of 4, 6 and 8, respectively. Which statements are true for R's new routing table after this iteration?
A. The distance from R to P will be stored as 10.
B. The distance from R to Q will be stored as 7.
C. The next hop from R to P is Y.
D. The next hop from R to Q is Z.
Choose the correct answer from the options given below:
Q21. A router's table has subnets 12.20.164.0/22 → R1, 12.20.170.0/23 → R2, 12.20.168.0/23 → Interface 0, 12.20.166.0/23 → Interface 1 and a default → R3. Which of the following prefixes can collectively be used to correctly aggregate all of the subnets?
A. 12.20.164.0/20
B. 12.20.164.0/22
C. 12.20.164.0/21
D. 12.20.168.0/22
Choose the correct answer from the options given below: