Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. 1. For which type of file is nano least likely to be useful for examining or editing?
  2. A. A text file encoded in Unicode
  3. B. A shell script file
  4. C. A text file encoded in ASCII
  5. D. A LibreOffice word processing document
  6. E. A Linux configuration file
  7.  
  8. Answer: D
  9.  
  10. 2. Which keystrokes invoke the pico or nano search function? (Select all that apply.)
  11. A. F3
  12. B. F6
  13. C. Esc-5
  14. D. Ctrl+F
  15. E. Ctrl+W
  16.  
  17. Answer: E
  18.  
  19. 3. How would you remove two lines of text from a file when using vi?
  20. A. In command mode, position the cursor on the first line and type 2dd.
  21. B. In command mode, position the cursor on the first line and type 2yy.
  22. 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.
  23. D. In insert mode, position the cursor at the start of the first line and press ctrl+k twice.
  24. E. Select the text with the mouse then select File>Delte from menu.
  25.  
  26. Answer: D
  27.  
  28. 4. True or False: Unicode is useful for encoding most European languages but not Asian languages?
  29.  
  30. Answer: F
  31.  
  32. 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.
  33.  
  34. Answer: T
  35.  
  36. 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.
  37.  
  38. Answer: T
  39.  
  40. 7. ASCII supports _______ unique characters (not inlcuding control characters).
  41.  
  42. Answer: 128
  43.  
  44. 8. Three keystrokes that can initiate a search-and-replace operation in nano are F14, _______, and _______.
  45.  
  46. Answer: ctrl+w and ctrl+l
  47.  
  48. 9. While in vi's command mode, you can type _______ to undo a change.
  49.  
  50. Answer: u
  51.  
  52. 10. To save a file and exit the vi text editor in command mode, type ________.
  53.  
  54. Answer: wq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement