Unix based server platforms MCQs  switches MCQs

Unix-Based Server Platforms MCQs

  1. Which command is used to display the current working directory in Unix?
    a) ls
    b) pwd
    c) cd
    d) dir
    Answer: b) pwd
  2. Which Unix command is used to display a list of files and directories in a directory?
    a) ls
    b) find
    c) grep
    d) cat
    Answer: a) ls
  3. 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
  4. 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/fstab
    Answer: a) /etc/network/interfaces
  5. Which Unix command is used to view the contents of a file?
    a) view
    b) less
    c) show
    d) open
    Answer: b) less
  6. What does the ps command display in Unix?
    a) Process status
    b) System information
    c) Disk usage
    d) Network statistics
    Answer: a) Process status
  7. Which command is used to change the owner of a file in Unix?
    a) chown
    b) chmod
    c) chgrp
    d) cp
    Answer: a) chown
  8. Which file contains user account information in Unix-based systems?
    a) /etc/group
    b) /etc/passwd
    c) /etc/shadow
    d) /etc/sudoers
    Answer: b) /etc/passwd
  9. 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
  10. Which command is used to monitor real-time system performance in Unix?
    a) top
    b) df
    c) du
    d) free
    Answer: a) top

Switches MCQs

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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 vlan
    Answer: c) show mac address-table
  8. 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
  9. 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
  10. 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