Routing and Switching & Ip and Subnet Questions
Routing and Switching & Ip and Subnet Questions
1. What is the default administrative distance for a static route in Cisco IOS?
A. 1
B. 90
C. 120
D. 255
Correct Answer: A
A. ARP
Correct Answer: D
3. What is the purpose of the Spanning Tree Protocol (STP) in a switch network?
Correct Answer: A
4. What is the maximum number of VLANs that can be supported on a Cisco switch?
A. 64
B. 128
C. 256
D. 4096
Correct Answer: D
5. Which routing protocol uses the Dijkstra algorithm to calculate the best path to a destination?
A. OSPF
B. RIP
C. EIGRP
D. BGP
Correct Answer: A
A. To direct traffic to the next-hop router for all destinations not explicitly listed
Correct Answer: A
Correct Answer: A
8. Which routing protocol uses a distance vector algorithm based on hop count?
A. RIP
B. OSPF
C. BGP
D. EIGRP
Correct Answer: A
10. Which layer of the OSI model is responsible for routing and switching functions?
A. Layer 1 (Physical)
C. Layer 3 (Network)
D. Layer 4 (Transport)
Correct Answer: C
A. ip route
B. route add
C. static route
D. set route
Correct Answer: A
12. What is the purpose of VLAN Trunking Protocol (VTP) in a switch network?
Correct Answer: D
13. How does a switch determine the appropriate port for forwarding traffic to a specific destination MAC address?
Correct Answer: C
14. Which command is used to display the routing table in Cisco IOS?
A. show routes
B. show ip route
C. display routing-table
D. view routes
Correct Answer: B
15. Which protocol is used to establish neighbor relationships between routers in a network?
A. OSPF
B. BGP
C. EIGRP
D. RIP
Correct Answer: A
Correct Answer: B
17. How does a router determine the best path to a destination network in a dynamic routing environment?
Correct Answer: B
A. ip default-gateway
D. default-gateway
Correct Answer: C
19. What is the purpose of the administrative distance metric in a routing table entry?
Correct Answer: B
Correct Answer: C
21. Which protocol is used to share routing information between routers in a network?
A. OSPF
B. IPv6
C. ICMP
D. DNS
Correct Answer: A
Correct Answer: C
23. Which routing protocol uses a combination of distance vector and link-state algorithms?
A. OSPF
B. BGP
C. EIGRP
D. RIP
Correct Answer: C
24. What is the purpose of the "ip default-gateway" command in a router configuration?
A. To specify the default gateway for devices in the same network segment
Correct Answer: A
25. Which command is used to display the MAC address table on a switch?
A. show arp
B. show mac-address-table
C. display mac
D. view arp
Correct Answer: B
Correct Answer: A
27. Which protocol is used to dynamically learn the best path to a destination network in a router environment?
A. OSPF
B. BGP
C. RIP
D. EIGRP
Correct Answer: D
28. How does a router determine the best path to a destination network in a static routing environment?
Correct Answer: B
Correct Answer: B
A. SSH
B. Telnet
C. FTP
D. SNMP
Correct Answer: A
Correct Answer: B
A. show ip arp
B. show mac-address-table
C. display arp
D. view arp
Correct Answer: A
33. What is the function of the Address Resolution Protocol (ARP) in a network environment?
Correct Answer: A
34. Which routing protocol uses a hop count metric to determine the best path to a destination network?
A. OSPF
B. EIGRP
C. RIP
D. BGP
Correct Answer: C
Correct Answer: B
B. create vlan
C. vlan database
D. config vlan
Correct Answer: B
Correct Answer: B
38. How does a switch determine the appropriate VLAN for a packet received on an access port?
Correct Answer: C
Correct Answer: A
40. Which routing protocol supports both IPv4 and IPv6 address families?
A. OSPF
B. EIGRP
C. BGP
D. RIP
Correct Answer: B
41. What is the purpose of the "show interfaces" command in Cisco IOS?
42. Which protocol is used to dynamically learn the best path to a destination network in a switch environment?
A. ARP
B. VTP
C. STP
D. OSPF
Correct Answer: D
43. What is the purpose of the "ip default-network" command in a router configuration?
Correct Answer: C
44. How does a router determine the appropriate next hop for a packet destined for a remote network?
Correct Answer: D
Correct Answer: A
A. show vlan
B. vlan show
C. display vlan
D. view vlan
Correct Answer: A
Correct Answer: A
48. Which layer of the OSI model is responsible for routing and switching functions?
A. Layer 1 (Physical)
C. Layer 3 (Network)
D. Layer 4 (Transport)
Correct Answer: C
49. What is the purpose of the administrative distance metric in a routing table entry?
Correct Answer: B
50. What is the maximum number of VLANs that can be supported on a Cisco switch?
A. 64
B. 128
C. 256
D. 4096
Correct Answer: D
51. Which command is used to configure a static route in Cisco IOS?
A. ip route
B. route add
C. static route
D. set route
Correct Answer: A
52. What is the purpose of Spanning Tree Protocol (STP) in a switch network?
Correct Answer: A
53. What is the purpose of VLAN Trunking Protocol (VTP) in a switch network?
Correct Answer: D
54. Which routing protocol uses the Dijkstra algorithm to calculate the best path to a destination?
A. OSPF
B. RIP
C. EIGRP
D. BGP
Correct Answer: A
A. To direct traffic to the next-hop router for all destinations not explicitly listed
Correct Answer: A
56. How does a router determine the best path to a destination network in a dynamic routing environment?
Correct Answer: B
Correct Answer: A
58. What is the purpose of the "show ip route" command in Cisco IOS?
Correct Answer: A
Correct Answer: C
60. Which protocol is used to establish neighbor relationships between routers in a network?
A. OSPF
B. BGP
C. EIGRP
D. RIP
Correct Answer: A
61. What is the purpose of the "ip default-gateway" command in a router configuration?
A. To specify the default gateway for devices in the same network segment
Correct Answer: A
62. Which command is used to display the MAC address table on a switch?
A. show arp
B. show mac-address-table
C. display mac
D. view arp
Correct Answer: B
Correct Answer: A
A. ip default-gateway
Correct Answer: C
Correct Answer: B
66. How does a switch determine the appropriate VLAN for a packet received on an access port?
Correct Answer: C
Correct Answer: B
Correct Answer: B
69. Which protocol is used to share routing information between routers in a network?
A. OSPF
B. IPv6
C. ICMP
D. DNS
Correct Answer: A
Correct Answer: A
71. Which routing protocol uses a combination of distance vector and link-state algorithms?
A. OSPF
B. BGP
C. EIGRP
D. RIP
Correct Answer: C
C) To secure a network
B) Class B
C) Class C
D) Class D
A) 255.0.0.0
B) 255.255.0.0
C) 255.255.255.0
D) 255.255.255.255
A) 16 bits
B) 32 bits
C) 48 bits
D) 64 bits
B) 192.168.1.256
C) 10.20.30.40
D) 400.500.600.700
7. What is the maximum number of hosts that can be accommodated in a Class C network?
A) 126
B) 254
C) 510
D) 1022
A) 127.0.0.1
B) 192.168.0.1
C) 10.0.0.1
D) 172.16.0.1
10. How many usable IP addresses are in a network with a subnet mask of 255.255.255.224?
A) 30
B) 62
C) 126
D) 254
Correct answer: A) 30
A) 169.254.0.0 - 169.254.255.255
B) 192.0.2.0 - 192.0.2.255
C) 172.16.0.0 - 172.31.255.255
D) 198.51.100.0 - 198.51.100.255
A) 256.0.0.1
B) 172.31.255.255
C) 10.1.1.1
D) 192.168.1.1
C) To secure a network
A) 4 bits
B) 8 bits
C) 16 bits
D) 32 bits
16. Which of the following classes of IP addresses ranges from 128.0.0.0 to 191.255.255.255?
A) Class A
B) Class B
C) Class C
D) Class D
B) 8 bits
C) 16 bits
D) 32 bits
A) 255.0.0.0
B) 250.250.250.0
C) 255.255.255.192
D) 192.168.300.0
A) 255.255.255.254
B) 255.255.128.0
C) 255.0.128.0
D) 255.255.255.0
B) 255.0.0.0
C) 255.255.0.0
D) 255.255.255.255
23. How many bits are usually reserved for the network portion of an IP address in a Class B network?
A) 8 bits
B) 16 bits
C) 24 bits
D) 32 bits
A) 2001:db8::1
B) 192.168.1.1
C) 10.0.0.1
D) 172.16.0.1
B) 64 bits
C) 128 bits
D) 256 bits
A) To simplify subnetting
29. How many bits are in the host portion of an IPv4 address with a subnet mask of 255.255.255.0?
A) 8 bits
B) 16 bits
C) 24 bits
D) 32 bits
A) 255.255.255.248
B) 255.255.255.120
C) 255.255.255.254
D) 255.255.255.255
32. What is the main difference between a public and a private IP address?
A) Public IP addresses are assigned by an ISP, while private IP addresses are within a local network
B) Public IP addresses are used for internal network communication, while private IP addresses are for external communication
Correct answer: A) Public IP addresses are assigned by an ISP, while private IP addresses are within a local network
33. How many bits are required for the host portion of an IPv4 address with a subnet mask of 255.255.255.192?
A) 32 bits
B) 64 bits
C) 128 bits
D) 192 bits
A) Class E
B) Class F
C) Class G
D) Class H
36. How many subnets can be created with a subnet mask of 255.255.255.0?
A) 2
B) 4
C) 8
D) 16
Correct answer: D) 16
38. Which of the following is a valid IP address within the range of class C?
A) 192.168.0.1
B) 10.0.0.1
C) 169.254.0.1
D) 172.16.0.1
39. How many bits are used for network addressing in a classful IP address?
A) 8 bits
B) 16 bits
C) 24 bits
D) 32 bits
D) To compress IP addresses
A) 255.255.255.240
B) 255.255.255.300
C) 255.255.264.0
D) 255.255.255.1000
B) 8 bits
C) 16 bits
D) 32 bits
44. How many host bits are available in a class B network with a subnet mask of 255.255.252.0?
A) 8 bits
B) 10 bits
C) 12 bits
D) 16 bits
A) To prevent IP conflicts
B) FC00::1
C) FE80::1
D) 2001::1
A) 255.0.0.0
B) 255.255.0.0
C) 255.255.255.0
D) 255.255.255.255
A) 16 bits
B) 24 bits
C) 32 bits
D) 64 bits
49. Which of the following is a valid subnet mask for a class C network?
A) 255.0.0.0
B) 255.255.0.0
C) 255.255.255.0
D) 255.255.255.255
A) 32 bits
B) 64 bits
C) 96 bits
D) 128 bits
52. What is the main function of a subnet mask with a value of 255.255.254.0?
53. Which of the following IP address classes uses only the first octet for the network portion?
A) Class A
B) Class B
C) Class C
D) Class D
B) 32 bits
C) 64 bits
D) 128 bits
A) To simplify subnetting
A) 32 bits
B) 64 bits
C) 128 bits
D) 256 bits
A) 255.0.0.0
B) 255.255.0.0
C) 255.255.255.0
D) 255.255.255.255
58. How many bits are in a host portion of an IPv4 address with a subnet mask of 255.255.255.192?
A) 8 bits
B) 16 bits
C) 24 bits
D) 32 bits
A) 10.0.0.0