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

51: Who invented TCP/IP?

A.   Cerf and Kahn

B.   Cerf and Postal

C.   Crocker and Duvall

D.   Kahn and Duvall

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

A.   Host-to-Host

B.   Network Access

C.   Internet

D.   Application

53: Which of the following is not a valid TCP/IP protocol layer ?

A.   Transport

B.   Session

C.   Internetwork

D.   Application

54: Which of the following socket bypass the normal TCP/IP processing?

A.   Stream socket

B.   Datagram socket

C.   Raw socket

D.   All of the given options are valid

55: Which of the following is not true regarding the traceroute application?

A.   It uses the TTL field to determine routers in the path between the source and destination hosts

B.   None of these

C.   It uses TCP packets encapsulated in an IP packet

D.   It traces out ap IP path taken by IP packets to a given destination

56: Which of the following is a VALID use of IP address 0.0.0.0/8?

A.   Cable television networks

B.   "This" network

C.   Public-data networks

D.   Multicast

57: Which of the following protocol messages belong to STD 6?

A.   Internet Control Message Protocol (ICMP)

B.   User Datagram Protocol (UDP)

C.   Internet Protocol (IP)

D.   Address Resolution Protocol (ARP)

58: VERSION, IHL, TOS etc are valid properties of which of the following?

A.   IP datagram

B.   IP Header

C.   IP Data

D.   Subnet

59: Which of the following protocols was designed to overcome the weaknesses of RARP (Reverse Address Resolution Protocol)?

A.   Internet Group Management Protocol (IGMP)

B.   Address Resolution Protocol (ARP)

C.   Bootstrap Protocol (BOOTP)

D.   Reverse Address Resolution Protocol (RARP)

60: What is the maximum size of RIP datagrams?

A.   256 octet

B.   64 octet

C.   512 octet

D.   128 octet

61: What is binary 00011000.01001100.01111001.00001010 equivalent to in Decimal?

A.   24.67.121.11

B.   24.76.211.10

C.   24.77.121.10

D.   24.76.121.10

62: Which of the following is incorrect about an IPv4 address?

A.   An IP address is 32 bytes long

B.   An IP address is a logical address

C.   An IP address is globally unique in an internetwork

D.   An IP address can be considered to consist of a Network Part and a Host Part

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

A.   Internet Control Message Protocol (ICMP)

B.   Internet Protocol (IP)

C.   User Datagram Protocol (UDP)

D.   Address Resolution Protocol (ARP)

64: A TCP header should contain a:

A.   total length field

B.   sequence field

C.   type-of-service field

D.   protocol field

65: Which of the following is a VALID use of IP address 24.0.0.0/8?

A.   Cable television networks

B.   "This" network

C.   Public-data networks

D.   Multicast

66: 06-00-00-00-00-00 is Universally administered MAC address

A.   FALSE

B.   TRUE

67: A switch will forward a unicast frame through all of its ports (except for the port that originated the frame)

A.   Allways

B.   If the switch has no knowledge of which port leads to that MAC address

C.   Never

68: 06-00-00-00-00-00 is Unicast MAC Address

A.   TRUE

B.   FALSE

69: In TCP/IP protocol suite,where does ARP fall?

A.   Application Layer

B.   Phiysical and MAC layer

C.   Transport Layer

D.   Network layer

70: What is the binary value of hex BF?

A.   10100000

B.   10111111

C.   11111000

D.   00111011

71: How many bits are used to represent an IPv4 address?

A.   8

B.   16

C.   24

D.   32

E.   128

72: What is the maximum life time of an entry in the Dynamic ARP cache?

A.   2 minutes

B.   As specified by the system administrator

C.   ARP entries are permanent

D.   30 seconds

E.   10 minutes

73: Which Protocol is used to obtain the MAC address from a given IP address?

A.   ARP

B.   SMTP

C.   IARP

D.   RARP

74: TCP is less reliable but faster than UDP.

A.   True

B.   False

75: What is the top-most level of the Internet domain name hierarchy called?

A.   Zone

B.   Internet domain name

C.   The root domain

D.   Reverse-lookup zone domain

E.   Resolver

76: Which statements are true regarding UDP?

A.   It is a connectionless service

B.   It is less reliable as compared to TCP

C.   It uses handshaking

D.   It is slow as compared to TCP

77: Which protocol does the ping command use when attempting to test whether a remote host is running?

A.   IP

B.   UDP

C.   ICMP

D.   IGMP

E.   ARP

78: You have a Class A network address with 60 subnets. You need to add 40 new subnets in the next two years and still allow for the largest possible number of host IDs per subnet. Which subnet mask should you assign?

A.   255.240.0.0

B.   255.248.0.0

C.   255.252.0.0

D.   255.254.0.0

E.   255.0.0.0

79: Which of the following Protocols is used for transferring electronic mail?

A.   FTP

B.   SNMP

C.   ARP

D.   SMTP

80: How many subnets are available in a class B network with subnet mask of 255.255.255.0?

A.   256

B.   512

C.   64

D.   1024

81: Which technique enables a single network address to span multiple physical networks?

A.   Multihoming

B.   Multicasting

C.   Multitasking

D.   Subnetting

E.   Supernetting

82: How can you prevent a DHCP server from assigning an IP address to a DHCP client when that address is within the range of addresses defined in a DHCP scope?

A.   Deny the request

B.   Redefine the DHCP scope

C.   Increase the range of IP addresses

D.   Create a client reservation for future reference

E.   Create an exclusion range containing the IP address

83: In which class of addresses does the first octet specify the network ID and the last three octets specify the host ID?

A.   Class A

B.   Class B

C.   Class C

D.   Class D

E.   Class E

84: Your network has an IP of 150.150.0.0 and you need to divide it into multiple subnets. You need 600 host IDs for each subnet, with the largest amount of subnets available. Which subnet mask should you assign?

A.   255.255.224.0

B.   255.255.240.0

C.   255.255.248.0

D.   255.255.252.0

E.   255.255.0.0

85: Which Protocol is used to find the IP address from the name of a website/host?

A.   FTP

B.   SNMP

C.   DNS

D.   POP3

86: Which protocol matches the remote host's physical address to a given IP address?

A.   TCP

B.   IP

C.   ARP

D.   UDP

E.   ICMP

87: Which protocols does SNMP use when sending messages between subnets?

A.   IP and UDP

B.   TCP and IP

C.   FTP and TCP

D.   ICMP and UDP

88: What is the network ID of IP address 172.30.60.0/20?

A.   172.30.16.0

B.   172.30.48.0

C.   172.30.32.0

D.   172.30.0.0

89: Which IP address class does the following IP address belong to? 78.34.6.90

A.   Class A

B.   Class B

C.   Class C

D.   Class D

E.   Class E

90: If you have a subnet mask of /27 for a class C network, how many subnets and host per subnet will you get?

A.   4 networks and 62 hosts

B.   64 networks and 4 hosts

C.   32 networks and 8 hosts

D.   8 networks and 30 hosts

91: How is a subnet mask specified for supernetting?

A.   The host ID portion of a class address is extended to use a portion of the network ID

B.   The host ID portion is reduced

C.   The total number of bits used for IP addressing is increased

D.   The subnet mask need not be specified for supernetting

E.   The number of hosts on the network is decreased

92: What does the HOSTS file contain?

A.   IP addresses and NetBIOS names

B.   Physical addresses of each host

C.   IP addresses of each host

D.   IP address-to-NetBIOS name mappings

E.   An entry for each host's IP address followed by the host name

93: What kind of message can an SNMP agent generate?

A.   A trace message

B.   An SNMP message

C.   An alert message

D.   A trap message

E.   A get message

94: Which one of the following addresses can be used as a host address for the subnet 200.100.10.64/27?

A.   200.100.10.32

B.   200.100.10.95

C.   200.100.10.64

D.   200.100.10.90

95: How does ARP work when attempting to resolve the IP address of a destination host located on a different subnet?

A.   By sending an ARP broadcast requesting the physical address of the destination host

B.   By sending an ARP broadcast requesting the physical address of the router

C.   By sending an ARP broadcast for the IP address it is attempting to use

D.   By sending an ARP request to the default gateway

E.   By sending an ARP request to the DHCP server on the remote subnet

96: What is maximum number of hosts allowed on subnet 172.20.64.0/23?

A.   510

B.   512

C.   1024

D.   256

97: Which of the following is a valid unicast IP address?

A.   127.0.0.1

B.   224.50.72.10

C.   172.30.50.15/30

D.   192.168.1.5/30

98: Which of the following is a valid host IP address?

A.   200.100.100.31/27

B.   200.100.100.32/26

C.   200.100.100.40/29

D.   200.100.100.51/30

99: If UDP receives datagrams that are not in a sequence, what will it do?

A.   It will arrange them in a sequence using sequence numbers

B.   It will request source host to resend datagrams

C.   It will drop datagrams that are not in sequence

D.   None of the above

100: Your Company has a class C network. Your company requires 6 usable subnets, with 20 hosts in each subnet. Which subnet mask will you use?

A.   255.255.255.0

B.   255.255.255.240

C.   255.255.255.224

D.   255.255.255.192