Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. For which type of file is nano least likely to be useful for examining or editing?
- A. A text file encoded in Unicode
- B. A shell script file
- C. A text file encoded in ASCII
- D. A LibreOffice word processing document
- E. A Linux configuration file
- Answer: D
- 2. Which keystrokes invoke the pico or nano search function? (Select all that apply.)
- A. F3
- B. F6
- C. Esc-5
- D. Ctrl+F
- E. Ctrl+W
- Answer: E
- 3. How would you remove two lines of text from a file when using vi?
- A. In command mode, position the cursor on the first line and type 2dd.
- B. In command mode, position the cursor on the first line and type 2yy.
- C. In insert mode, position the cursor at the start of the first line, hold down the Shift key while pressing the down-arrow key twice, and press the delete key on the keyboard.
- D. In insert mode, position the cursor at the start of the first line and press ctrl+k twice.
- E. Select the text with the mouse then select File>Delte from menu.
- Answer: D
- 4. True or False: Unicode is useful for encoding most European languages but not Asian languages?
- Answer: F
- 5. True or False: GUI text editors for ASCII are superior to text-mode ASCII text editors because the GUI editors support underlining, italics, and multiple fonts.
- Answer: T
- 6. True or False: If you have never used a text editor before, the nano text editor is usually the best one to learn first.
- Answer: T
- 7. ASCII supports _______ unique characters (not inlcuding control characters).
- Answer: 128
- 8. Three keystrokes that can initiate a search-and-replace operation in nano are F14, _______, and _______.
- Answer: ctrl+w and ctrl+l
- 9. While in vi's command mode, you can type _______ to undo a change.
- Answer: u
- 10. To save a file and exit the vi text editor in command mode, type ________.
- Answer: wq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement