LPI Certification / CompTIA Linux+ Practice Test - Question List

Select how would you like to study

16. John has opened a text file named data.txt in the vi editor. He moves the cursor using the arrow keys to a position in the file where he needs to make several changes. However, when he tries to enter text nothing happens. Which of the following could be stopping John from entering text?
  1. The vi editor is in insert mode. He needs to switch to command mode.
  2. The vi editor is in insert mode. He needs to switch to replace mode.
  3. The vi editor is in command mode. He needs to switch to insert mode.
  4. The text file is corrupt.
17. You are using vi to edit a file in insert mode. You try to use the BACKSPACE key to delete a word. The editor does not respond. Which of the following could be the cause?
  1. You need to switch to normal mode.
  2. You need to switch to replace mode.
  3. You need to switch to command mode.
  4. The BACKSPACE key does not work in the vi editor.
18.

You want to install Linux on a workstation. The hard drive has been wiped clean and is ready for the new operating system. You insert your first Linux installation CD-ROM in the drive and boot the system. Instead of starting the installation routine, the screen displays an error message indicating that an operating system couldn’t be found. Which of the following is the most likely cause of this problem?

  1. The boot device priority is set incorrectly in the BIOS
  2. The installation CD-ROM is damaged
  3. The hard drive needs to be replaced
  4. The CD-ROM drive is malfunctioning
19. Which of the following specifies the location where you can find the vi symbolic link file on most Linux distributions?
  1. /boot
  2. /usr/bin
  3. /etc
  4. /var/vi
20. By default, which of the following modes does the vi editor open in?
  1. Normal mode
  2. Command mode
  3. Insert mode
  4. Replace mode

Select how would you like to study