0% found this document useful (0 votes)
3 views

Assignment-1-Solution

The document is an assignment for the NPTEL Online Certification Course on Ethical Hacking from IIT Kharagpur, consisting of 10 multiple-choice questions covering topics like network models, packet switched networks, TCP protocol, and IP addressing. Each question includes the correct answer and a detailed solution explaining the reasoning behind it. The assignment aims to assess the understanding of fundamental concepts in networking and ethical hacking.

Uploaded by

Vrushank Bhatt
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Assignment-1-Solution

The document is an assignment for the NPTEL Online Certification Course on Ethical Hacking from IIT Kharagpur, consisting of 10 multiple-choice questions covering topics like network models, packet switched networks, TCP protocol, and IP addressing. Each question includes the correct answer and a detailed solution explaining the reasoning behind it. The assignment aims to assess the understanding of fundamental concepts in networking and ethical hacking.

Uploaded by

Vrushank Bhatt
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

NPTEL Online Certification Courses

Indian Institute of Technology Kharagpur

Course Name: ETHICAL HACKING


Assignment- Week 1
TYPE OF QUESTION: MCQ/MSQ/SA
Number of questions: 10 Total mark: 10 x 1 = 10
______________________________________________________________________________

QUESTION 1:
For which of the following, the tester is provided only with partial information about a
network?

a. White box model


b. Black box model
c. Gray box model
d. None of these

Correct Answer: c

Detail Solution: In the white box model, the tester has complete information about the
network. In the black box model, the tester does not have any information about the network.
Gray box testing is somewhere in between, where the tester is only provided with partial
information about the network.

____________________________________________________________________________

QUESTION 2:
Which of the following is/are not true about a packet switched network?

a. A communication link can be shared by more than one connection.


b. A communication link is dedicated to a connection.
c. The packet transfer delay between a pair of nodes is more or less constant.
d. The packet transfer delay between a pair of nodes may vary with time.

Correct Answer: b, c

Detail Solution: In a circuit switched network, a communication link remains dedicated to a


connection; however, in a packet switched network, communication links may be shared by
more than one connection. Also, in a packet switched network, packets between the same
source and destination may follow different paths, and hence the packet transfer delay can vary
with time. Thus, options (b) and (c) are false.
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

______________________________________________________________________________

QUESTION 3:
A 1000 byte packet is sent over a 50 kilo-bits-per-second (Kbps) point-to-point link whose
propagation delay is 10 msec. The packet will reach the destination after ________ msec.
(Assume 1K = 1000)

Correct Answer: 170

Detail Solution: 50x1000 = 50000 bits per second can be transferred through the link.
1 bit can be sent in = (1/50000) sec
1000 byte or 8000 bits can be sent in 8000 / 50000 sec = 0.16 sec = 160 msec
Hence the packet will reach the destination after = 160 msec + 10 msec = 170 msec

_____________________________________________________________________________

QUESTION 4:
Which of the following OSI layers are host-to-host layers?

a. Session layer
b. Transport layer
c. Network layer
d. Datalink layer

Correct Answer: a, b

Detail Solution: Follows from Week-1, slide no 54. The layers transport, session, presentation
and application are host-to-host layers, while the remaining three are not.

______________________________________________________________________________

QUESTION 5:
How many bits are there in the IP address and port number?

a. 32, 16
b. 32, 8
c. 48, 16
d. 48, 8

Correct Answer: a
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

Detail Solution: IP address in IPv4 is 32 bits long, whereas port numbers in TCT or UDP are 16
bits long.

____________________________________________________________________________

QUESTION 6:
Which of the following are true for the TCP protocol?

a. It provides connection-oriented, reliable packet transfer service.


b. It provides connection-less datagram service.
c. All packets from a source to a destination follow the same path.
d. Packets from a source to a destination may follow different paths.

Correct Answer: a, d

Detail Solution: TCP ensures connection-oriented and reliable message transfer service
between two hosts. However, it runs on top of the IP protocol for packet delivery, which is a
datagram based service and hence individual packets constituting the message may follow
different paths. Hence the options (a) and (d) are true.

_____________________________________________________________________________

QUESTION 7:
If a 2000 byte data message is sent using TFTP, the corresponding Ethernet packet will be of
________ bytes.

Correct Answer: 2050

Detail Solution: Follows from Week-1, slide no 65. (H-Eth + H-IP + H-UDP + H-TFTP + T-Eth)
field bytes are added to get 50 bytes. Hence the total size of the Ethernet packet will be
2000+50 = 2050 bytes.

______________________________________________________________________________

QUESTION 8:
If the IP header is 192 bits long, what will be the value of the “HLEN” field?

a. 4
b. 6
c. 32
d. 192
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

Correct Answer: b

Detail Solution: The HLEN field contains the size of the IP header in multiples of 32 bits or 4
bytes. Here, size of the IP header = 192 bits = 6 x 32 bits. Hence, HLEN will contain 0110, which
is the binary equivalent of the number 6.

______________________________________________________________________________

QUESTION 9:
The maximum size of data that can be accommodated in an IP datagram is ________ bytes.

Correct Answer: 65515

Detail Solution: The TOTAL-LENGTH field in the IP header is 16 bits, which can contain values
from 0 to 216 – 1 = 65535, the total size of an IP packet can be 65535 bytes. Also, the minimum
size of the IP header is 20 bytes, which makes the maximum size of data as 65535 – 20 = 65515
bytes.

____________________________________________________________________________

QUESTION 10:
Which of the following statements are false?

a. Datagram is faster than virtual circuits if the number of packets transmitted is


small.
b. Datagram is faster than virtual circuits if the number of packets transmitted is
large.
c. In circuit switching, a dedicated communication path is established between two
end stations.
d. Datagram does not require connection establishment phase.

Correct Answer: b

Detail Solution: Virtual circuits have the initial overhead of connection establishment, but once
it is done, packets will flow faster as the header size is smaller. Datagrams do not require
connection establishment. For less number of packets, the overhead will dominate, and hence
datagram will be faster. For large number of packets, however, virtual circuit will become faster
as the overhead per packet becomes less. Also, in circuit switching, a dedicated communication
path is established between two end stations. Hence, only option (b) is false.

______________________________________________________________________________
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

************END*******

You might also like