Tcp Ip(Networking ) Questions and Answers

Question 1. Which of the following are TCP/IP protocols used at the Application layer of the OSI model?
1. IP
2. TCP
3. Telnet
4. FTP
5. TFTP
  1.    1 and 3
  2.    1, 3 and 5
  3.    3, 4 and 5
  4.    All of the above
Explanation:-
Answer: Option C. -> 3, 4 and 5
Telnet, File Transfer Protocol (FTP), and Trivial FTP (TFTP) are all Application layer protocols. IP is a Network layer protocol. Transmission Control Protocol (TCP) is a Transport layer protocol.

Question 2. What is the address range of a Class B network address in binary?
  1.    01xxxxxx
  2.    0xxxxxxx
  3.    10xxxxxx
  4.    110xxxxx
Explanation:-
Answer: Option C. -> 10xxxxxx
The range of a Class B network address is 128-191. This makes our binary range 10xxxxxx.

Question 3. What protocol is used to find the hardware address of a local device?
  1.    RARP
  2.    ARP
  3.    IP
  4.    ICMP
Explanation:-
Answer: Option B. -> ARP
Address Resolution Protocol (ARP) is used to find the hardware address from a known IP address.

Question 4. Which of the following protocols uses both TCP and UDP?
  1.    FTP
  2.    SMTP
  3.    Telnet
  4.    DNS
Explanation:-
Answer: Option D. -> DNS
DNS uses TCP for zone exchanges between servers and UDP when a client is trying to resolve a hostname to an IP address.

Question 5. Which of the following services use TCP?
1. DHCP
2. SMTP
3. HTTP
4. TFTP
5. FTP
  1.    1 and 2
  2.    2, 3 and 5
  3.    1, 2 and 4
  4.    1, 3 and 4
Explanation:-
Answer: Option B. -> 2, 3 and 5
SMTP, HTTP and FTP use TCP.

Question 6. Which of the following is private IP address?
  1.    12.0.0.1
  2.    168.172.19.39
  3.    172.15.14.36
  4.    192.168.24.43
Explanation:-
Answer: Option D. -> 192.168.24.43
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.

Question 7. 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?
  1.    SMTP
  2.    SNMP
  3.    DHCP
  4.    ARP
Explanation:-
Answer: Option C. -> DHCP
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.

Question 8. Which of the following describe the DHCP Discover message?
1. It uses FF:FF:FF:FF:FF:FF as a layer 2 broadcast.
2. It uses UDP as the Transport layer protocol.
3. It uses TCP as the Transport layer protocol.
4. It does not use a layer 2 destination address.
  1.    1 only
  2.    1 and 2
  3.    3 and 4
  4.    4 only
Explanation:-
Answer: Option B. -> 1 and 2
A client that sends out a DHCP Discover message in order to receive an IP address sends out a broadcast at both layer 2 and layer 3. The layer 2 broadcast is all Fs in hex, or FF:FF:FF:FF:FF:FF. The layer 3 broadcast is FF:FF:FF:FF:FF:FF, which means all networks and all hosts. DHCP is connectionless, which means it uses User Datagram Protocol (UDP) at the Transport layer, also called the Host-to-Host layer.

Question 9. What layer in the TCP/IP stack is equivalent to the Transport layer of the OSI model?
  1.    Application
  2.    Host-to-Host
  3.    Internet
  4.    Network Access
Explanation:-
Answer: Option B. -> Host-to-Host
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.

Question 10. Which of the following allows a router to respond to an ARP request that is intended for a remote host?
  1.    Gateway DP
  2.    Reverse ARP (RARP)
  3.    Proxy ARP
  4.    Inverse ARP (IARP)
Explanation:-
Answer: Option C. -> Proxy ARP
Proxy ARP can help machines on a subnet reach remote subnets without configuring routing or a default gateway.