¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

Chapter 3 Review Questions

OpieTaylor 25 preguntas

Hacer el test

Preguntas del test (25)

  1. 1You are using vi to edit a file and have just entered 12 new lines. You need to replicate the same 12 lines right after you enter them. What command-mode command can you type to replicate the lines?
    1. Aa period (.)
    2. BCtrl+r
    3. CCtrl+R
    4. Da dollar sign ($)
  2. 2Which of the following enables you to move the cursor to the left while you are in command mode in the vi editor?
    1. APress the right arrow key.
    2. BPress the left arrow key.
    3. CPress h.
    4. DPress l.
  3. 3When you started the vi editor, you forgot to specify the name for the new file you are creating. To save steps next time, how can you specify the name of a new file when you first start vi?
    1. AEnter vi -n at the command line and then type in the file name when prompted.
    2. BEnter vi -n and the filename, such as vi -n myfile.
    3. CEnter vi and the filename, such as vi myfile.
    4. DEnter vi ? and then enter the file name when you see the > prompt on the command line.
  4. 4Your colleague has written a line of text in vi and now wants to delete the line, but save its contents in a buffer in case he decides to bring back the line he deletes. What do you recommend?
    1. AWhile in command mode, move the cursor to the last character in the line and press d-.
    2. BWhile in insert mode, move the cursor to any character in the line and press Alt+d.
    3. CWhile in command mode, move the cursor to the first character in the line and press dd.
    4. DWhile in insert mode, move the cursor to the last character in the line and type :#delete.
  5. 5You are in the vi editor and it’s now noon. Every day at noon you run a program called update, which updates a database. How can you run the program without closing your vi session?
    1. AFrom command mode, press #, type update, and press Enter.
    2. BFrom insert mode, press Alt+ and then type update.
    3. CFrom insert mode, press && twice and then type update.
    4. DFrom command mode, type :!update and press Enter.
  6. 6While you are working on a report in vi, you decide to insert information from another file. Provide the command sequence to insert a file called employees.txt into your current vi session. Assume you are in command mode.
    1. A:r employees.txt
    2. B+employees.txt
    3. Cadd employees.txt
    4. D#copy employees.txt
  7. 7You’re editing a document using vi and you are near the end of a page. You want to quickly go back to the top of the page to check something you said. Which of the following command-line commands enables you to quickly go to the top of the page?
    1. A:top
    2. BT
    3. CGo1
    4. DH
  8. 8You are preparing to give a training session on the vi editor. How would you BEST describe it?
    1. AIt is modal.
    2. BIt is a text editor.
    3. CMost UNIX/Linux distributions come with vi.
    4. DIt is a screen editor.
  9. 9While working in the Emacs editor, you delete a section of text and then decide to undo your deletion. Which of the following commands should you use?
    1. AUse the Ctrl+u command.
    2. BUse the Alt+u command.
    3. CUse the Ctrl+x,u command.
    4. DYou're stuck retyping the deleted text, because Emacs does not enable you to undelete.
  10. 10When you copy text in Emacs, you must mark the text you want to copy by using which of the following commands?
    1. AUse Ctrl+Tab to mark the beginning of the text and Ctrl+Shift to mark the end. Next press Alt+z to copy the text.
    2. BUse Ctrl+Spacebar to mark the beginning of the text and Alt+w to mark the end as well as to copy the text.
    3. CUse :mark to mark the beginning of the text and :endmark to mark the end as well as to copy the text.
    4. DUse @begin to mark the beginning of the text and @end to mark the end. Next type :copy to copy the text.

Información

Descripción
Review Questions for Chapter 3: Mastering Editors
Idioma
English
Visitas
837
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?