Q.21 :
What command would you use to change a switch port to access mode?
a) switchport mode trunk
b) switchport access vlan 10
c) switchport mode access
d) switchport access mode
Answer: (c) switchport mode access
Q.22 :
Which VLAN is used for the management of Cisco switches by default?
a) VLAN 100
b) VLAN 99
c) VLAN 2
d) VLAN 1
Answer: (d) VLAN 1
Q.23 :
In PVST+, how many instances of Spanning Tree Protocol run per VLAN?
a) One
b) Two
c) One per switch
d) One per VLAN
Answer: (d) One per VLAN
Q.24 :
What command would you use to allow VLAN 10 over a trunk link?
a) switchport mode allow 10
b) switchport trunk allowed vlan 10
c) switchport vlan trunk add 10
d) switchport vlan allowed trunk 10
Answer: (b) switchport trunk allowed vlan 10
Q.25 :
Which command shows the STP root bridge for a VLAN?
a) show stp vlan
b) show spanning-tree root
c) show spanning-tree vlan [vlan_id]
d) show stp vlan [vlan_id] root
Answer: (c) show spanning-tree vlan [vlan_id]
Q.26 :
In which STP port state does the switch learn MAC addresses but not forward frames?
a) Blocking
b) Listening
c) Learning
d) Forwarding
Answer:(c) Learning
Q.27 :
What type of VLAN is used to separate voice traffic from data traffic?
a) Management VLAN
b) Native VLAN
c) Data VLAN
d) Voice VLAN
Answer:(d) Voice VLAN
Q. 28 :
Which command is used to set the STP priority for a VLAN to make a switch the root bridge?
a) spanning-tree root
b) spanning-tree vlan priority 0
c) spanning-tree vlan [vlan_id] root primary
d) spanning-tree vlan [vlan_id] root
Answer: (c) spanning-tree vlan [vlan_id] root primary
Q. 29:
Which of the following modes is not a valid STP port state?
a) Blocking
b) Listening
c) Inspecting
d) Forwarding
Answer: (c) Inspecting
Q. 30:
Which STP protocol has the fastest convergence time?
a) PVST
b) RSTP
c) STP
d) MST
Answer: (b) RSTP (Rapid Spanning Tree Protocol).