150 CCNA Switch Configuration MCQS with Explanation

51. Which command enables trunking on a switch port?

  • a) switchport mode access
  • b) switchport trunk encapsulation dot1q
  • c) switchport mode trunk
  • d) switchport trunk allow vlan

Answer: c) switchport mode trunk

The switchport mode trunk command configures a port as a trunk port, allowing it to carry traffic for multiple VLANs.

52. The _____ command is used to display the routing table on a Cisco switch.

  • a) show routes
  • b) show ip route
  • c) show routing
  • d) show ip routing-table

Answer: b) show ip route

The show ip route command displays the routing table, which contains routes learned by the switch.

53. Which of the following commands is used to set a static IP address on a VLAN interface?

  • a) ip address static
  • b) ip address
  • c) ip static address
  • d) set ip address

Answer: b) ip address

The ip address command is used to set a static IP address on a VLAN interface.

54. Which of the following is NOT a valid method to remotely access a Cisco switch?

  • a) SSH
  • b) Telnet
  • c) Console cable
  • d) FTP

Answer: d) FTP


FTP is not used for remote access to a Cisco switch. SSH and Telnet are the primary protocols, and a console cable is used for direct access.

55. What does the command line vty 0 4 configure on a switch?

  • a) Console access
  • b) Telnet access
  • c) SSH access
  • d) VLAN configuration

Answer: b) Telnet access

The line vty 0 4 command configures virtual terminal lines for Telnet access on the switch.

56. Which of the following is a characteristic of a collision domain?

  • a) It includes all devices on a VLAN.
  • b) It is segmented by routers.
  • c) It is segmented by switches.
  • d) It includes all devices within a single broadcast domain.

Answer: c) It is segmented by switches.

A collision domain is segmented by switches, where each switch port creates a separate collision domain.

57. Fill in the blank: The _____ command is used to apply an access list to an interface.

  • a) apply access-list
  • b) access-list interface
  • c) ip access-group
  • d) ip apply-list

Answer: c) ip access-group

The ip access-group command is used to apply an access control list (ACL) to an interface, filtering traffic.

58. Which of the following commands is used to configure a password for privileged EXEC mode?

  • a) enable password
  • b) enable secret
  • c) password exec
  • d) exec password

Answer: b) enable secret


The enable secret command configures a secure, encrypted password for privileged EXEC mode.

59. What is the purpose of the show running-config command?

  • a) To display the current IP address
  • b) To display the startup configuration
  • c) To display the currently active configuration
  • d) To display the MAC address table

Answer: c) To display the currently active configuration

The show running-config command displays the current configuration that is active on the switch.

60. Which of the following is a feature of a managed switch but not an unmanaged switch?

  • a) VLAN support
  • b) MAC address table
  • c) Collision detection
  • d) Broadcast traffic filtering

Answer: a) VLAN support

Managed switches support VLANs, whereas unmanaged switches typically do not.
We will be happy to hear your thoughts

Leave a reply