Unit 4 - Practice Quiz

CSE306

1 Which of the following is a primary design issue of the Network Layer?

A. Process-to-process delivery
B. Store-and-forward packet switching
C. Bit-level synchronization
D. Token management

2 In the IPv4 header, what is the length of the HLEN (Header Length) field, and what unit does it represent?

A. 4 bits, represents 4-byte words
B. 4 bits, represents 8-byte words
C. 8 bits, represents 1-byte words
D. 16 bits, represents bits

3 Which field in the IPv4 header prevents a packet from circulating indefinitely in a network with routing loops?

A. Header Checksum
B. Fragment Offset
C. Time to Live (TTL)
D. Type of Service

4 Identify the Class of the IPv4 address: 191.255.254.1.

A. Class A
B. Class B
C. Class C
D. Class D

5 What is the default subnet mask for a Class C IP address?

A. 255.0.0.0
B. 255.255.0.0
C. 255.255.255.0
D. 255.255.255.255

6 In Classless Inter-Domain Routing (CIDR), what does the suffix /21 indicate in the address block 192.168.0.0/21?

A. 21 hosts are available
B. The network mask is 21 bits long
C. The host ID is 21 bits long
D. There are 21 subnets

7 Calculate the number of usable hosts in a subnet with the mask 255.255.255.224.

A. 30
B. 32
C. 62
D. 64

8 Which field in the IP header is used to reassemble fragmented packets?

A. Identification, Flags, and Fragment Offset
B. TTL and Protocol
C. Source IP and Destination IP
D. TOS and HLEN

9 What is the maximum size of an IPv4 packet (including header and data)?

A. 1500 bytes
B. 65,535 bytes
C. bytes
D. 4096 bytes

10 If an IP address is 200.10.20.5 and the subnet mask is 255.255.255.240, what is the Subnet Address (Network ID)?

A. 200.10.20.0
B. 200.10.20.4
C. 200.10.20.5
D. 200.10.20.16

11 Which of the following is a private IP address range defined by RFC 1918?

A. 172.16.0.0 to 172.31.255.255
B. 169.254.0.0 to 169.254.255.255
C. 11.0.0.0 to 11.255.255.255
D. 224.0.0.0 to 239.255.255.255

12 In IPv6, how many bits long is the address?

A. 32 bits
B. 64 bits
C. 128 bits
D. 256 bits

13 What is Supernetting predominantly used for?

A. Dividing a network into smaller sub-networks
B. Route aggregation to reduce routing table size
C. Encrypting IP headers
D. Assigning dynamic IP addresses

14 Given the IP address block 192.168.1.0/24, if you need to create 4 subnets, how many bits must be borrowed from the host portion?

A. 1 bit
B. 2 bits
C. 3 bits
D. 4 bits

15 Which of the following represents the loopback address in IPv4?

A. 127.0.0.0/8
B. 0.0.0.0
C. 255.255.255.255
D. 192.168.0.1

16 The Fragment Offset value in the IP header is measured in units of:

A. 1 byte
B. 4 bytes
C. 8 bytes
D. 16 bytes

17 In a Class B network, what is the maximum number of hosts per network?

A.
B.
C.
D. 254

18 Which IPv6 address type identifies a set of interfaces where a packet is delivered to the nearest one?

A. Unicast
B. Multicast
C. Broadcast
D. Anycast

19 What is the result of the bitwise AND operation between IP address 192.168.10.150 and subnet mask 255.255.255.192?

A. 192.168.10.128
B. 192.168.10.0
C. 192.168.10.64
D. 192.168.10.192

20 The Protocol field in the IP header indicates:

A. The type of physical network used
B. The higher-level protocol (e.g., TCP, UDP) using the IP layer
C. The version of IP protocol
D. The priority of the packet

21 In the IPv6 header, which field replaces the TTL (Time To Live) field found in IPv4?

A. Traffic Class
B. Flow Label
C. Hop Limit
D. Next Header

22 Which of the following statements about Connectionless Service in the Network Layer is TRUE?

A. Packets are called virtual circuits
B. Packets are treated independently and may take different routes
C. Resources are reserved in advance
D. It guarantees in-order delivery

23 Find the Broadcast address for the subnet 10.1.1.0/28.

A. 10.1.1.14
B. 10.1.1.15
C. 10.1.1.16
D. 10.1.1.255

24 Which IP Class is reserved for Multicasting?

A. Class B
B. Class C
C. Class D
D. Class E

25 Forwarding in the network layer is primarily the process of:

A. Creating the routing table
B. Moving a packet from an input interface to an appropriate output interface
C. Calculating the shortest path
D. Assigning IP addresses to hosts

26 What is the simplified hexadecimal representation of the IPv6 address 2001:0DB8:0000:0000:0000:0000:1428:57ab?

A. 2001:DB8::1428:57ab
B. 2001:DB8:0:0:0:0:1428:57ab
C. 2001:DB8::0::1428:57ab
D. 2001:DB8:1428:57ab

27 A subnet mask of /30 is typically used for:

A. Large enterprise networks
B. Point-to-point links between two routers
C. Loopback interfaces
D. Class A networks

28 Which mechanism allows a router to group multiple small CIDR blocks into one larger routing entry?

A. Subnetting
B. Route Aggregation (Supernetting)
C. Fragmentation
D. Tunneling

29 If the More Fragments (MF) bit is set to 0 and the Fragment Offset is non-zero, what does this indicate?

A. This is the first fragment
B. This is the last fragment of the original packet
C. The packet is not fragmented
D. The packet has been dropped

30 In Classful addressing, which class range is 240.0.0.0 to 255.255.255.254?

A. Class C
B. Class D
C. Class E
D. Class F

31 What is the Longest Prefix Match rule?

A. The router selects the path with the highest bandwidth
B. The router forwards the packet based on the routing table entry with the longest matching network mask
C. The router selects the route with the fewest hops
D. The router matches the source IP instead of destination IP

32 Which of the following headers is NOT present in IPv6 but was present in IPv4?

A. Source Address
B. Destination Address
C. Header Checksum
D. Hop Limit (TTL)

33 Calculate the first valid host address for the network 192.168.5.0/26.

A. 192.168.5.0
B. 192.168.5.1
C. 192.168.5.63
D. 192.168.5.64

34 What happens if a router receives a packet larger than the Maximum Transmission Unit (MTU) of the outgoing link, and the DF (Don't Fragment) flag is set to 1?

A. The router fragments the packet anyway
B. The router discards the packet and sends an ICMP error message to the source
C. The router buffers the packet until the link is clear
D. The router truncates the data

35 An organization is assigned the block 200.200.200.0/24. They need to create subnets that support at least 20 hosts each. What is the most efficient subnet mask to use?

A. /25
B. /26
C. /27
D. /28

36 Which field in the IPv4 header is used for Quality of Service (QoS) or Differentiated Services?

A. Type of Service (ToS) / Differentiated Services (DiffServ)
B. Protocol
C. Flags
D. Padding

37 How does the IPv6 header handle options?

A. Included in the fixed 40-byte header
B. Appended to the data payload
C. Using Extension Headers inserted between the IPv6 header and the upper-layer header
D. IPv6 does not support options

38 If a host has the IP 172.16.45.14 and mask 255.255.255.252, what is the Broadcast address?

A. 172.16.45.12
B. 172.16.45.15
C. 172.16.45.255
D. 172.16.45.14

39 What is the primary motivation for the transition from IPv4 to IPv6?

A. Faster routing speeds
B. Address space exhaustion in IPv4
C. Better encryption standards
D. Smaller header size

40 Which component of network layer performance is defined as the number of packets passing through the network per unit of time?

A. Delay
B. Throughput
C. Jitter
D. Packet Loss

41 In the context of IPv4, what is the 'Loopback' functionality used for?

A. Testing the network interface card and protocol stack software without sending packets on the network
B. Sending data to all hosts on the subnet
C. Routing packets back to the source if an error occurs
D. Creating a routing loop

42 Given 4 Class C networks: 200.1.0.0, 200.1.1.0, 200.1.2.0, and 200.1.3.0. What is the supernet (aggregated) address?

A. 200.1.0.0/22
B. 200.1.0.0/23
C. 200.1.0.0/24
D. 200.1.0.0/21

43 What is the binary equivalent of the subnet mask 255.255.248.0?

A. 11111111.11111111.11110000.00000000
B. 11111111.11111111.11111000.00000000
C. 11111111.11111111.11111100.00000000
D. 11111111.11111111.11111110.00000000

44 In IPv6, the Flow Label field is used to:

A. Identify packets belonging to a specific sequence requiring special handling (e.g., real-time audio/video)
B. Limit the number of hops
C. Identify the next header type
D. Calculate checksums

45 Which protocol is responsible for mapping an IP address to a physical MAC address?

A. RARP
B. DHCP
C. ARP
D. ICMP

46 A network administrator wants to subnet the network 172.16.0.0/16 into 100 subnets. What is the new subnet mask?

A. /21
B. /22
C. /23
D. /25

47 Which of the following is TRUE regarding IPv6 fragmentation?

A. Routers perform fragmentation when the packet is too large
B. Only the source node can fragment packets
C. Fragmentation is not supported in IPv6
D. Destination nodes reassemble and re-fragment packets

48 What is the purpose of the Padding field in the IPv4 header?

A. To ensure the header ends on a 32-bit boundary
B. To add security to the packet
C. To increase the packet size to the minimum Ethernet frame size
D. To store routing options

49 Which value in the first byte of an IP address indicates a Class A address?

A. 0 - 127
B. 128 - 191
C. 192 - 223
D. 224 - 239

50 If you have a /22 prefix, what is the block size (number of IP addresses) in that subnet?

A. 256
B. 512
C. 1024
D. 2048