TCP/IP MCQs

TCP/IP MCQs

Answer these 100+ TCP/IP MCQs and see how sharp is your knowledge of TCP/IP.
Scroll down and let's start!

1: Which of the following is NOT a valid class of IP addresses?

A.   Class B

B.   Class A

C.   Class C

D.   Class F

2: Which of the following commands can be used on some IP hosts to list the details of fragmentation?

A.   net

B.   netstat

C.   ipconfig

D.   config

3: Which of the following is the maximum length of an IP datagram?

A.   75,535 octets

B.   65,536 octets

C.   66,535 octets

D.   65,535 octets

4: Which of the following IP addresses use 24 bits for the <network> and 8 bits for the <host> portion of the IP address?

A.   Class A addresses

B.   Class B addresses

C.   Class C addresses

D.   Class D addresses

5: Which of the following is private IP address?

A.   168.172.19.39

B.   12.0.0.1

C.   172.15.14.36

D.   192.168.24.43

6: Which of the following networks major networks contain an incorrect subnet mask?

A.   Class C with a mask 255.255.255.0 or /24

B.   Class A with a mask 255.0.0.0 or /8

C.   Class B with a mask 255.255.0.0 or /16

D.   Class D with a mask 255.255.255.255 or /32

7: Which protocol ensures reliable delivery

A.   UDP

B.   IP

C.   TCP

D.   NETBEUI

8: Which of the following is a VALID dynamic routing protocol category?

A.   Distance vector protocols

B.   Link state protocols

C.   Path vector protocols

D.   All of the given options are valid

9: 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?

A.   SNMP

B.   TFTP

C.   ARP

D.   SMTP

E.   DHCP

10: Which IP address is reserved for loopback testing?

A.   0.0.0.0

B.   192.168.1.1

C.   127.0.0.1

D.   127.256.0.1

11: Which protocol deals with resolving domain names

A.   SMTP

B.   DNS

C.   SPX

D.   NETBIOS

12: TCP is a "Blank" protocol.

A.   Unreliable

B.   Connectionless

C.   Connection Oriented

D.   Best Effort

13: Which of the following protocol adds no reliability, flow-control, or error recovery to IP and simply serves as a multiplexer/demultiplexer for sending and receiving datagrams, using ports to direct the datagrams?

A.   Internet Protocol (IP)

B.   Internet Control Message Protocol (ICMP)

C.   Address Resolution Protocol (ARP)

D.   User Datagram Protocol (UDP)

14: Which of the following IP addresses are reserved for multicasting (broadcasting)?

A.   Class A addresses

B.   Class B addresses

C.   Class D addresses

D.   Class C addresses

15: Which of the following addresses have : First 24 bits : Network address Last 8 bits : Local host address

A.   Class A addresses

B.   Class D addresses

C.   Class C addresses

D.   Class B addresses

16: Which of the following type of IP addresses are suitable for networks with an extremely large number of hosts?

A.   Class B addresses

B.   Class C addresses

C.   Class D addresses

D.   Class A addresses

17: What is the telecommunication protocol that all computers must use to be part of the Internet.

A.   TCP

B.   IP

C.   ARP

D.   UDP

18: Which of the following are reserved for future/experimental/test use?

A.   Class C addresses

B.   Class A addresses

C.   Class D addresses

D.   Class E addresses

19: Which protocol deals with emails

A.   SMTP

B.   LPD

C.   FTP

D.   X Windows

20: Which of the following IP addresses use 14 bits for the <network> and 16 bits for the <host> portion of the IP address?

A.   Class C addresses

B.   Class B addresses

C.   Class A addresses

D.   Class D addresses

21: The network number portion of the IP address is administered by which of the following?

A.   All of the given options are valid

B.   Reseaux IP Europeans (RIPE)

C.   Asia Pacific Network Information Centre (APNIC)

D.   American Registry for Internet Numbers (ARIN)

22: Which of the following fields in the header of an IP packet will be decremented by one at each router?

A.   The Type of Service

B.   The Protocol Number

C.   The Time to Live (TTL)

D.   The Header Checksum

23: Which of the following is a VALID use of IP address 224.0.0.0/4?

A.   Multicast

B.   "This" network

C.   Public-data networks

D.   Cable television networks

24: Which of the following is an interface between an application/program/software and network?

A.   subnet

B.   socket

C.   datagram

D.   handle

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

A.   Class A

B.   Class C

C.   Class B

D.   Class D

26: IP addresses are represented by a which of the following sized unsigned binary value?

A.   256-bit

B.   128-bit

C.   32-bit

D.   64-bit

27: Which of the following IP addresses use 8 bits for the <network> and 24 bits for the <host> portion of the IP address?

A.   Class B addresses

B.   Class C addresses

C.   Class A addresses

D.   Class D addresses

28: TCP contains fields in the header of TCP Segment to identify upper layer applications, what are these fields?

A.   Options

B.   The TTL field

C.   Source and Destination Port Numbers

D.   The TYPE field

29: Which of the following correctly describes Dynamic Host Configuration Protocol (DHCP) message type DHCPOFFER?

A.   Acknowledgement from server to client with parameters, including IP address

B.   Negative acknowledgement from server to client

C.   Response from a server to a DHCPDISCOVER and offering IP address and other parameters

D.   Broadcast by a client to find available DHCP servers

30: Which of the following correctly describes Dynamic Host Configuration Protocol (DHCP) message type DHCPRELEASE?

A.   Acknowledgement from server to client with parameters, including IP address

B.   Message from client to server cancelling remainder of a lease and relinquishing network address

C.   Response from a server to a DHCPDISCOVER and offering IP address and other parameters

D.   Broadcast by a client to find available DHCP servers

31: Which of the following is an VALID RIP packet type?

A.   Request packet and Response packet

B.   Data packet

C.   Request packet

D.   Response packet

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

A.   Proxy ARP

B.   Reverse ARP (RARP)

C.   Gateway DP

D.   Inverse ARP (IARP)

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

A.   Presentation

B.   Session

C.   Transport

D.   Application

34: Which of the following TCP/IP protocol layer is also called as internet layer or the network layer?

A.   Internetwork layer

B.   Network interface

C.   Session

D.   Application

A.   Transport

B.   Network interface

C.   Session

D.   Application

36: Dynamic Host Configuration Protocol (DHCP) supports which of the following mechanisms for IP address allocation?

A.   All of the given options are correct

B.   Manual allocation

C.   Dynamic allocation

D.   Automatic allocation

37: Internet Protocol (IP) is the most important protocol in which of the following layer

A.   Application

B.   Session

C.   Internetwork layer

D.   Network interface

38: Which protocol uses window flow system

A.   UDP

B.   NONE OF THE ABOVE.

C.   FTP

D.   TCP

39: In an IPv4 header the IP Flag is set to D. What does it mean?

A.   0x40 : Do not fragment

B.   0x65: ARP returned

C.   0x80: ARP dropped

D.   0x20: Fragment and send

40: Which of the following TCP/IP layer provides the end-to-end data transfer by delivering data from an application to its remote peer?

A.   Transport

B.   Application

C.   Network interface

D.   Session

41: Which of the following is a VALID use of IP address 14.0.0.0/8?

A.   Cable television networks

B.   Multicast

C.   Public-data networks

D.   "This" network

42: Layer 4 of the OSI model contains the TCP and UDP protocols, what is FALSE about UDP?

A.   Does not contain any port numbers

B.   Low overhead

C.   Unreliable

D.   Stands for User Datagram Protocol

43: Which of the following protocol messages belong to STD 5?

A.   Internet Control Message Protocol (ICMP)

B.   Address Resolution Protocol (ARP)

C.   User Datagram Protocol (UDP)

D.   Internet Protocol (IP)

44: TCP/IP reference model contains how many layers

A.   3

B.   7

C.   4

D.   2

45: Which of the following is NOT a protocol associated with the TCP/IP transport layer?

A.   Both User Datagram Protocol (UDP) and Transmission Control Protocol (TCP)

B.   Internet Protocol (IP)

C.   Transmission Control Protocol (TCP)

D.   User Datagram Protocol (UDP)

46: Which of the following is TRUE about Interior Gateway Protocols (IGPs)?

A.   Allow the exchange of summary information between autonomous systems

B.   Allow routers to exchange information within an autonomous system

C.   Allow the exchange of information only within known systems

D.   None of the given options are valid

47: Which of the following is NOT a valid Dynamic Host Configuration Protocol (DHCP) message type?

A.   DHCPNRELEASE

B.   DHCPDISCOVER

C.   DHCPREQUEST

D.   DHCPOFFER

48: Based on the provided answers, what is the best INCORRECT answer for ICMP?

A.   ICMP stands for the Internet Control Message Protocol

B.   If an ICMP packet is dropped, a new ICMP packet will be generated

C.   The primary function of ICMP is for error notification between routers and hosts

D.   ICMP is encapsulated in IP packets

49: Which of the following is a connectionless network socket ?

A.   Stream socket

B.   Raw socket

C.   Datagram socket

D.   All of the given options are valid

50: Which of the following correctly define maximum transmission unit (MTU)?

A.   Minimum supported length of an IP datagram

B.   Minimum required frame size of a physical network as per standards

C.   Maximum frame size of a physical network

D.   Maximum length of an IP datagram