Which command is used to display the current working directory in Unix?
a) ls
b) pwd
c) cd
d) dirAnswer: b) pwd
Which Unix command is used to display a list of files and directories in a directory?
a) ls
b) find
c) grep
d) catAnswer: a) ls
What does the chmod command do in Unix?
a) Changes the owner of a file
b) Changes the file permissions
c) Changes the file name
d) Changes the file location
Answer: b) Changes the file permissions
Which file is used to configure network interfaces in Unix-based systems?
a) /etc/network/interfaces
b) /etc/resolv.conf
c) /etc/passwd
d) /etc/fstabAnswer: a) /etc/network/interfaces
Which Unix command is used to view the contents of a file?
a) view
b) less
c) show
d) openAnswer: b) less
What does the ps command display in Unix?
a) Process status
b) System information
c) Disk usage
d) Network statistics
Answer: a) Process status
Which command is used to change the owner of a file in Unix?
a) chown
b) chmod
c) chgrp
d) cpAnswer: a) chown
Which file contains user account information in Unix-based systems?
a) /etc/group
b) /etc/passwd
c) /etc/shadow
d) /etc/sudoersAnswer: b) /etc/passwd
What does the grep command do in Unix?
a) Searches for specific patterns in files
b) Lists file contents
c) Changes file permissions
d) Displays system messages
Answer: a) Searches for specific patterns in files
Which command is used to monitor real-time system performance in Unix?
a) top
b) df
c) du
d) freeAnswer: a) top
Switches MCQs
What is the primary function of a network switch?
a) To connect different networks
b) To route data between devices on the same network
c) To filter and forward data packets to specific devices based on MAC addresses
d) To provide internet access
Answer: c) To filter and forward data packets to specific devices based on MAC addresses
Which layer of the OSI model does a network switch primarily operate on?
a) Physical layer
b) Data link layer
c) Network layer
d) Transport layer
Answer: b) Data link layer
What is ‘VLAN’ used for in network switches?
a) To create a virtual network within a physical network
b) To enhance network security
c) To increase network bandwidth
d) To connect different types of networks
Answer: a) To create a virtual network within a physical network
What does the ‘Spanning Tree Protocol’ (STP) prevent in a network with multiple switches?
a) Network congestion
b) Duplicate data packets
c) Switching loops
d) Network security breaches
Answer: c) Switching loops
Which type of switch port can be configured to allow multiple VLANs?
a) Access port
b) Trunk port
c) Uplink port
d) Management port
Answer: b) Trunk port
What does the ‘MAC address table’ in a switch do?
a) Stores IP addresses of devices
b) Maps MAC addresses to switch ports to manage data traffic
c) Records system log events
d) Manages user accounts
Answer: b) Maps MAC addresses to switch ports to manage data traffic
Which command is used to display the MAC address table on a Cisco switch?
a) show interfaces
b) show ip arp
c) show mac address-table
d) show vlanAnswer: c) show mac address-table
What is the purpose of ‘port security’ in network switches?
a) To prevent unauthorized devices from accessing switch ports
b) To increase network speed
c) To monitor network traffic
d) To configure IP addresses
Answer: a) To prevent unauthorized devices from accessing switch ports
What is the function of ‘Link Aggregation’ in switches?
a) To combine multiple network links into a single logical link to increase bandwidth
b) To separate network traffic into different VLANs
c) To provide redundant network paths
d) To secure network communications
Answer: a) To combine multiple network links into a single logical link to increase bandwidth
Which protocol is used to automatically assign IP addresses to devices on a network?
a) DNS
b) DHCP
c) HTTP
d) SNMP
Answer: b) DHCP