Explore topic-wise MCQs in Computer Networks.

This section includes 40 Mcqs, each offering curated multiple-choice questions to sharpen your Computer Networks knowledge and support exam preparation. Choose a topic below to get started.

1.

IP address 10.231.241.1 belongs to which of the following class?

A. Class A
B. Class B
C. Class C
D. Class D
Answer» B. Class B
2.

Dynamic routing protocol enable routers to:

A. Dynamically discover and maintain routes
B. Distribute routing updates to other routers
C. Reach agreement with other routers about the network topology
D. All of the above
Answer» E.
3.

Consider the following statements about the functionality of an IP based router.I. A router does not modify the IP packets during forwarding.II. It is not necessary for a router to implement any routing protocol.III. A router should reassemble IP fragments if the MTU of the outgoing link is larger than the size of the incoming IP packet.Which of the above statements is/are TRUE?

A. I and II only
B. I only
C. II and III only
D. II only
Answer» E.
4.

Consider a CIDR network address 194.24.0.0/21. The last address in this network will be:

A. 194.24.7.255
B. 194.24.11.255
C. 194.23.7.255
D. 194.24.7.250
Answer» B. 194.24.11.255
5.

Host A(on TCP/IP v4 network A) sends an IP datagram D to host B (also on TCP/IP v4 network B) Assume that no error occurred during the transmission of D. When D reaches B, which of the following IP header field(s) may be different from that of the original datagram D?i) TTL ii) Checksum iii) Fragment Offset

A. (i) only
B. (i) and (ii) only
C. (ii) and (iii) only
D. (i), (ii) and (iii)
Answer» E.
6.

_______ do not take their decisions on measurements or estimates of the current traffic and topology.

A. Static algorithms
B. Adaptive algorithms
C. Non-adaptive algorithms
D. Recursive algorithms
Answer» D. Recursive algorithms
7.

Match the following:FieldLength in bits P. UDP Header’s Port Number I. 48Q. Ethernet MAC AddressII. 8R. IPv6 Next HeaderIII. 32S. TCP Header’s Sequence NumberIV. 16

A. P-III, Q-IV, R-II, S-I
B. P-II, Q-I, R-IV, S-III
C. P-IV, Q-I, R-II, S-III
D. P-IV, Q-I, R-III, S-II
Answer» D. P-IV, Q-I, R-III, S-II
8.

For a network, the first IPv4 address is the _____ address and the last IPv4 address is the ____ address.

A. Broadcast; Network
B. Network; Broadcast
C. Broadcast; Severer
D. Network; Sever
Answer» C. Broadcast; Severer
9.

A router uses the following routing table:DestinationMaskInterface144.16.0.0255.255.0.0eth0144.16.64.0255.255.224.0eth1144.16.68.0255.255.255.0eth2144.16.68.64255.255.255.224eth3A packet bearing an estimation address 144.16.68.117 arrives at the router. On which interface will it be forwarded?

A. eth0
B. eth1
C. eth2
D. eth3
Answer» D. eth3
10.

An organization requires a range of IP addresses to assign one to each of its 1500 computers. The organization has approached on Internet Service Provider (ISP) for this task. The ISP uses CIDR and serves the requests from the available IP address space 202.61.0.0/17. The ISP wants to assign an address space to the organization which will minimize the number of routing entries in the ISP’s router using route aggregation. Which of the following address spaces are potential candidates from which the ISP can allot any one to the organization?I. 202.61.84.0/21II. 202.61.104.0/21III. 202.61.64.0/21IV. 202.61.144.0/21

A. I and II only
B. II and III only
C. III and IV only
D. I and IV only
Answer» C. III and IV only
11.

An IPv4 address is a __________ address, which is categorised into different IP classes.

A. 256 bits
B. 128 bits
C. 16 bits
D. 32 bits
Answer» E.
12.

How many bits internet address is assigned to each host on a TCP / IP internet which is used in all communication with the host?

A. 16 bits
B. 32 bits
C. 48 bits
D. 64 bits
Answer» C. 48 bits
13.

In an IPv6 header, the traffic class field is similar to the _____ field in the IPv4 header.

A. TOS field
B. Fragmentation field
C. Fast Switching
D. Option field
Answer» B. Fragmentation field
14.

Consider a computer network using the distance vector routing algorithm in its network layer. The partial topology of the network is as shown below.The objective is to find the shortest-cost path from the router R to routers P and Q. Assume that R does not initially know the shortest routes to P and Q. Assume that R has three neighbouring routers denoted as X, Y, and Z. During one iteration, R measures its distance to its neighbours X, Y, and Z as 3, 2, and 5, respectively. Router R gets routing vectors from its neighbours that indicate that the distance to router P from routers X, Y, and Z are 7, 6, and 5, respectively. The routing vector also indicates that the distance to router Q from routers X, Y, and Z are 4, 6, and 8, respectively. Which of the following statement(s) is/are correct with respect to the new routing table of R, after updation during this iteration ?

A. The next hop router for a packet from R to P is Y.
B. The distance from R to Q will be stored as 7
C. The next hop router for a packet from R to Q is Z.
D. The distance from R to P will be stored as 10.
Answer» B. The distance from R to Q will be stored as 7
15.

In IP Class - A addresses, the _________ byte is reserved for network ids.

A. fourth
B. second
C. third
D. first
Answer» E.
16.

Match with the suitable one:LIST ILIST IIMulticast group membershipDistance vector routingInterior gateway protocolIGMPExterior gateway protocolOSPFRIPBGP

A. A-2, B-3, C-4, D-1
B. A-2, B-4, C-3, D-1
C. A-3, B-4, C-1, D-2
D. A-3, B-1, C-4, D-2
Answer» B. A-2, B-4, C-3, D-1
17.

Consider three machines M, N, and P with IP addresses 100.10.5.2, 100.10.5.5, and 100.10.5.6 respectively. The subnet mask is set to 255.255.255.252 for all the three machines. Which one of the following is true?

A. M, N, and P all belong to the same subnet
B. Only M and N belong to the same subnet
C. Only N and P belong to the same subnet
D. M, N, and P belong to three different subnets
Answer» D. M, N, and P belong to three different subnets
18.

In Class-B IP addresses, number of bits used to identify class is

A. 1
B. 2
C. 3
D. 4
Answer» C. 3
19.

In a class B subnet, we know the IP address of one host and the mask as given below:IP address = 125.134.112.66Mask = 255.255.224.0What is the first address (Network address)?

A. 125.134.96.0
B. 125.134.112.0
C. 125.134.112.66
D. 125.134.0.0
Answer» B. 125.134.112.0
20.

Modem converts

A. Analog signals to digital signals
B. Digital signals to analog signals
C. Both (A) and (B)
D. None of these
Answer» D. None of these
21.

In classful addressing, a large part of the available addresses are _____.

A. Dispersed
B. Blocked
C. Wasted
D. Reserved
Answer» D. Reserved
22.

After the update in the previous question, the link N1-N2 goes down. N2 will reflect this change immediately in its distance vector as cost, ∞. After the NEXT ROUND of update, what will be the cost to N1 in the distance vector of N3?

A. 3
B. 9
C. 10
D.
Answer» D. ∞
23.

In class ‘C’ IP addresses, the number of network ID bits used to identify the class is _____.

A. 0
B. 1
C. 2
D. 3
Answer» E.
24.

An IP packet has arrived with the first 8 bits as 0100 0010. Which of the following is correct ?

A. The number of hops this packet can travel is 2
B. The total number of bytes in header is 16 bytes.
C. The upper layer protocol is ICMP
D. The receiver rejects the packet
Answer» E.
25.

Class ‘B’ IP addresses use _______ bits for Network ID.

A. 8
B. 16
C. 24
D. 32
Answer» C. 24
26.

An IPv4 address consists of two parts: a ______ part and a/an _____ part.

A. network: Ethernet
B. Host: Ethernet
C. Network: Host
D. Host; Error
Answer» D. Host; Error
27.

In the class ‘A’ IP addresses, the number of network ID bits used to identify the class is _________.

A. 0
B. 1
C. 2
D. 3
Answer» C. 2
28.

Class ‘C’ IP addresses use ______ bits for Network ID.

A. 8
B. 16
C. 24
D. 32
Answer» D. 32
29.

In class ‘B’ IP addresses, number of network ID bits used to identify the class is ________

A. 0
B. 1
C. 2
D. 3
Answer» D. 3
30.

In ICMP, in case of time exceeded error, when the datagram visits a router, the value of time to live field is ______.

A. Remains constant
B. Decremented by 2
C. Incremented by 1
D. Decremented by 1
Answer» B. Decremented by 2
31.

Class ‘C’ IP addresses use _________ bits for Host ID.

A. 8
B. 16
C. 24
D. 32
Answer» B. 16
32.

Class ‘A’ IP addresses use _________ bits for Network ID.

A. 8
B. 16
C. 24
D. 32
Answer» B. 16
33.

Consider the following statements about the routing protocols. Routing Information Protocol (RIP) and Open Shortest Path First (OSPE) in an IPv4 network.I. RIP uses distance vector routingII. RIP packets are sent using UDPIII. OSPF packets are sent using TCPIV. OSPF operation is based on link-state routingWhich of the statements above are CORRECT?

A. I and IV only
B. I, II and III only
C. I, II and IV only
D. II, III and IV only
Answer» D. II, III and IV only
34.

Class ‘B’ IP addresses use _______ bits for Host ID.

A. 8
B. 16
C. 24
D. 32
Answer» C. 24
35.

Consider the class full addressing, the IP address 128.252.144.84 denotes:

A. 128.252.0.0 as network ID and 128.252.144.84 as node ID
B. 0.0.0.0 as network ID and 128.252.252.84 as node ID
C. 128.252.144.0 as network ID and 128.252.144.84 as node ID
D. 128.0.0.0 as network ID and 128.252.127.84 as node ID
Answer» B. 0.0.0.0 as network ID and 128.252.252.84 as node ID
36.

Consider the following three statements about link state and distance vector routing protocols, for a large network with 500 network nodes and 4000 links.[S1] The computational overhead in link state protocols is higher than in distance vector protocols.[S2] A distance vector protocol (with split horizon) avoids persistent routing loops, but not a linkstate protocol.[S3] After a topology change, a link state protocol will converge faster than a distance vectorprotocol.Which one of the following is correct about S1, S2, and S3?

A. S1, S2, and S3 are all true.
B. S1, S2, and S3 are all false
C. S1 and S2 are true, but S3 is false.
D. S1 and S3 are true, but S2 is false
Answer» E.
37.

Class ‘A’ IP addresses use _____ bits for Host ID.

A. 8
B. 16
C. 24
D. 32
Answer» D. 32
38.

Abbreviation IP stands for

A. Internet printer
B. Individual Control Program
C. Internet programme
D. Internet protocol
Answer» E.
39.

Consider the store and forward packet switched network given below. Assume that the bandwidth of each link is 106 bytes / sec. A user on host A sends a file of size 103 bytes to host B through routers R1 and R2 in three different ways. In the first case a single packet containing the complete file is transmitted from A to B. In the second case, the file is split into 10 equal parts, and these packets are transmitted from A to B. In the third case, the file is split into 20 equal parts and these packets are sent from A to B. Each packet contains 100 bytes of header information along with the user data. Consider only transmission time and ignore processing, queuing and propagation delays. Also assume that there are no errors during transmission. Let T1, T2 and T3 be the times taken to transmit the file in the first, second and third case respectively. Which one of the following is CORRECT?

A. T1 < T2 < T3
B. T1 > T2 > T3
C. T2 = T3, T3 < T1
D. T1 = T3, T3 > T2
Answer» E.
40.

How many digits of the Network User Address are known as the DNIC (Data NetworkIdentification Code)?

A. first three
B. first four
C. first five
D. first seven
Answer» C. first five