Chandan Rajpurohit

An Artist With Technical Skills

Advertisements

1) In an IP packet, the value of HLEN is 5, and the value of the TOTAL LENGTH field is 1000 (in decimal). The number of data bytes in the packet will be __


Answer: 980


Solution: Since HLEN = 5, the size of the IP header will be 5 x 4 = 20 bytes. The total size of the IP packet is given as 1000 bytes. Hence, the number of data bytes = 1000 โ€“ 20 = 980 bytes.


Advertisements

2) An IP packet arrives at the final destination with the M flag set as 1. What can you say about the packet?

a. The packet has not been fragmented.
b. The packet has been fragmented.
c. The packet has been fragmented, and this is not the last fragment.
d. The packet data was truncated on its way.


Answer: b, c


Solution: When the Mode (M) flag in a packet is 1, this indicates that the original packet has definitely been fragmented. Also, this is not the last fragment โ€ฆ there are more fragments after this. Hence, options (b) and (c) are true.


Advertisements

3) Which address class does the IP address 227.12.85.123 belong to?

a. Class A
b. Class B
c. Class C
d. Class D


Answer: d


Solution: Class A addresses start with โ€œ0โ€, class B addresses start with โ€œ10โ€, class C addresses start with โ€œ110โ€, and class D addresses start with โ€œ1110โ€. For the given IP address, the first byte 227 = 11100011 in binary, this starts with โ€œ1110โ€. Hence, this is a class D address.


Advertisements

4) What do the following IP address signify: 144.16.255.255 ?

a. It is a unicast address on the class B network 144.16.0.0
b. It is a broadcast address on the class B network 144.16.0.0
c. The subnet mask is 0.0.255.255
d. None of these


Answer: b


Solution: The first byte 144 = 10010000 in binary, which indicates that this is a class B address (starts with โ€œ10โ€). Therefore, the first two bytes (144.16) will indicate the network address. The last two bytes will indicate the host address, which is specified as 255.255 (all 1โ€™s). The all 1โ€™s pattern indicates a broadcast address. Thus the IP address signifies a broadcast address on the class B network 144.16.0.0.


Advertisements

5) An IP packet with 2500 bytes of data (plus header) passes through an IP network with MTU =
500 bytes. How many additional bytes will be delivered at the destination?

a. 64
b. 100
c. 150
d. 200


Answer: b


Solution: Each IP fragment will have a header of 20 bytes, and data part of maximum 500 โ€“ 20 = 480 bytes. The number of fragments for the 2500 bytes of data will be therefore [2500 / 480] = 6. The original data packet had a header of 20 bytes. So, number of additional bytes (for the fragment headers) = 6 x 20 โ€“ 20 = 100 bytes.

Advertisements

One response to “Ethical Hacking MCQs [3]”

Leave a Reply

%d bloggers like this: