TCP/IP Questions and Answers updated daily – Networking



15 TCP/IP Questions and answers section with explanation for various online exam preparation, various interviews, Networking TCP/IP online test. TCP/IP Questions with detailed description, explanation will help you to master the topic.

TCP/IP Questions

1. What is the address range of a Class B network address in binary?



SHOW ANSWER
Correct Ans:10xxxxxx
Explanation:
The range of a Class B network address is 128-191. This makes our binary range 10xxxxxx.


2. What protocol is used to find the hardware address of a local device?



SHOW ANSWER
Correct Ans:ARP
Explanation:
Address Resolution Protocol (ARP) is used to find the hardware address from a known IP address.


3. Which layer 4 protocol is used for a Telnet connection?



SHOW ANSWER
Correct Ans:TCP
Explanation:
Although Telnet does use TCP and IP (TCP/IP), the question specifically asks about layer 4, and IP works at layer 3. Telnet uses TCP at layer 4.


4.
Which of the following are layers in the TCP/IP model?

Application
Session
Transport
Internet
Data Link
Physical



SHOW ANSWER
Correct Ans:1, 3 and 4
Explanation:
This seems like a hard question at first because it doesn't make sense. The listed answers are from the OSI model and the question asked about the TCP/IP protocol stack (DoD model). However, let's just look for what is wrong. First, the Session layer is not in the TCP/IP model; neither are the Data Link and Physical layers. This leaves us with the Transport layer (Host-to-Host in the DoD model), Internet layer (Network layer in the OSI), and Application layer (Application/Process in the DoD).


5.
Which statements are true regarding ICMP packets?

They acknowledge receipt of a TCP segment.
They guarantee datagram delivery.
They can provide hosts with information about network problems.
They are encapsulated within IP datagrams.



SHOW ANSWER
Correct Ans:3 and 4
Explanation:
Internet Control Message Protocol (ICMP) is used to send error messages through the network, but they do not work alone. Every segment or ICMP payload must be encapsulated within an IP datagram (or packet).


6. Which of the following is the decimal and hexadecimal equivalents of the binary number 10011101?



SHOW ANSWER
Correct Ans:157, 0x9D
Explanation:
To turn a binary number into decimal, you just have to add the values of each bit that is a 1. The values of 10011101 are 128, 16, 8, 4, and 1. 128 + 16 + 8 + 4 + 1 = 157.

Hexadecimal is a base-16 number system. The values of hexadecimal are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F-16 characters total, from which to create all the numbers you'll ever need. So, if 1001 in binary is 9, then the hexadecimal equivalent is 9. Since we then have 1101, which is 13 in binary, the hexadecimal answer is D and the complete hexadecimal answer is 0x9D.


7.
If you use either Telnet or FTP, which is the highest layer you are using to transmit data?



SHOW ANSWER
Correct Ans:Application
Explanation:
Both FTP and Telnet use TCP at the Transport layer; however, they both are Application layer protocols, so the Application layer is the best answer.


8. Which class of IP address provides a maximum of only 254 host addresses per network ID?



SHOW ANSWER
Correct Ans:Class C
Explanation:
A Class C network address has only 8 bits for defining hosts: 28 - 2 = 254.


9.
Which of the following services use UDP?

DHCP
SMTP
SNMP
FTP
HTTP
TFTP



SHOW ANSWER
Correct Ans:1, 3 and 6
Explanation:
DHCP, SNMP, and TFTP use UDP.


10. The DoD model (also called the TCP/IP stack) has four layers. Which layer of the DoD model is equivalent to the Network layer of the OSI model?



SHOW ANSWER
Correct Ans:Internet
Explanation:
The four layers of the DoD model are Application/Process, Host-to-Host, Internet, and Network Access. The Internet layer is equivalent to the Network layer of the OSI model.


11. Which of the following allows a router to respond to an ARP request that is intended for a remote host?



SHOW ANSWER
Correct Ans:Proxy ARP
Explanation:
Proxy ARP can help machines on a subnet reach remote subnets without configuring routing or a default gateway.


12. Which of the following is private IP address?



SHOW ANSWER
Correct Ans:192.168.24.43
Explanation:
Class A private address range is 10.0.0.0 through 10.255.255.255. Class B private address range is 172.16.0.0 through 172.31.255.255, and Class C private address range is 192.168.0.0 through 192.168.255.255.


13.
You want to implement a mechanism that automates the IP configuration, including IP address, subnet mask, default gateway, and DNS information. Which protocol will you use to accomplish this?



SHOW ANSWER
Correct Ans:DHCP
Explanation:
Dynamic Host Configuration Protocol (DHCP) is used to provide IP information to hosts on your network. DHCP can provide a lot of information, but the most common is IP address, subnet mask, default gateway, and DNS information.


14. What layer in the TCP/IP stack is equivalent to the Transport layer of the OSI model?



SHOW ANSWER
Correct Ans:Host-to-Host
Explanation:
The four layers of the TCP/IP stack (also called the DoD model) are Application/Process, Host-to-Host, Internet, and Network Access. The Host-to-Host layer is equivalent to the Transport layer of the OSI model.


15.
Which of the following services use TCP?

DHCP
SMTP
HTTP
TFTP
FTP



SHOW ANSWER
Correct Ans:2, 3 and 5
Explanation:
SMTP, HTTP and FTP use TCP.



FreshersLive - No.1 Job site in India. Here you can find latest 2017 government as well as private job recruitment notifications for different posts vacancies in India. Get top company jobs for both fresher and experienced. Job Seekers can get useful interview tips, resume services & interview Question and answer. Practice online test free which is helpful for interview preparation. Register with us to get latest employment news/rojgar samachar notifications. Also get latest free govt and other sarkari naukri job alerts daily through E-mail.