Networking Chapter 3 1 How can you access the online help documentation in the vi editor

subject Type Homework Help
subject Pages 6
subject Words 1094
subject Authors Michael Palmer

Unlock document.

This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
page-pf1
CHAPTER 3: MASTERING EDITORS
TRUE/FALSE
1. Files that contain nonprintable characters, such as machine instructions, are called binary files.
2. For some languages, such as Chinese, the ASCII character set is preferred instead of the Unicode
character set.
3. Emacs is a screen editor.
4. In vi, a tilde (~) precedes all line-oriented commands.
5. Emacs is a modal editor.
6. Like the vi editor, Emacs lets you search for specific text.
MULTIPLE CHOICE
1. The exclusive use of 0s and 1s as a way to communicate with the computer is known as ____
language.
a.
mathematical
c.
binary
b.
logical
d.
machine
2. A byte consists of ____ binary digits.
a.
four
c.
ten
b.
eight
d.
twelve
3. Computer files containing nothing but printable characters are called ____ files.
a.
text
c.
document
b.
binary
d.
ASCII
4. Unicode offers up to ____ characters.
a.
256
c.
16,384
b.
512
d.
65,536
page-pf2
5. The ASCII character set represents ____ characters.
a.
256
c.
16,384
b.
512
d.
65,536
6. ____ are typically not compiled into machine code prior to running, but are executed through an
interpreter.
a.
Programs
c.
Scripts
b.
Executable programs
d.
Libraries
7. Compiled and interpreted files that can be run are called ____ program files.
a.
binary
c.
assembly
b.
executable
d.
dynamic
8. UNIX/Linux normally include two editors: vi and ____.
a.
Emacs
c.
Pico
b.
Kate
d.
OpenOffice
9. The vi editor works in three modes: insert mode, ____ mode, and extended mode.
a.
edit
c.
screen
b.
line
d.
command
10. Insert mode, which lets you enter text, is accessed by typing the letter ____ after the vi editor is
started.
a.
“e”
c.
“d”
b.
“i”
d.
“n”
11. The vi editor’s ____ mode is started by pressing Esc.
a.
edit
c.
ex
b.
insert
d.
command
12. You can access vi’s ex mode by pressing Esc, and then typing a(n) ____ to enter extended commands
at the bottom of the screen.
a.
colon (:)
c.
tilde (~)
b.
semicolon (;)
d.
exclamation sign (!)
13. In the vi editor, lines containing a(n) ____ are not part of the file; they indicate lines on the screen
only.
a.
colon (:)
c.
tilde (~)
page-pf3
b.
semicolon (;)
d.
exclamation sign (!)
14. When editing a text file with vi, if you want to save your changes and exit right away, you can use
____ or ZZ from command mode.
a.
:wq
c.
:se
b.
:q!
d.
:sq
15. Using ____ plus a command-line command enables you to start a new shell, run the command, and
then go back into the vi editor.
a.
:q
c.
:c
b.
:!
d.
:$
16. The ____ Emacs command is used to mark the cursor location.
a.
Ctrl+@
c.
Ctrl+<
b.
Ctrl+>
d.
Ctrl+m
17. The ____ Emacs command is used to move the cursor to the beginning of the file.
a.
Alt+<
c.
Alt+b
b.
Ctrl+<
d.
Ctrl+b
18. You can start Emacs by entering the ____ command in the terminal window or at a command line in
UNIX/Linux.
a.
e
c.
emcs
b.
em
d.
emacs
19. You can use ____ to search backward in Emacs.
a.
Alt+r
c.
Alt+b
b.
Ctrl+r
d.
Ctrl+b
20. You can view general Emacs documentation by entering ____ (press this one or two times) while you
are in Emacs.
a.
Alt+?
c.
Alt+h
b.
Ctrl+?
d.
Ctrl+h
21. You can use the ____ command to turn on the word wrap feature in Emacs.
a.
Alt+w
c.
Alt+q
b.
Ctrl+w
d.
Ctrl+q
page-pf4
COMPLETION
1. A binary digit, called a(n) ____________________ for short, is in one of two states.
2. The term ____________________ is the abbreviation for binary term.
3. Graphics files include bit patternsrows and columns of dots called a(n)
____________________that must be translated by graphics software into an image.
4. You can use the ____________________ (line print) shell command to print a file from vi.
5. You can use the Del or ____________________ keys to delete individual characters in Emacs.
MATCHING
Match each item with a statement below.
a.
Ctrl+g
f.
/
b.
Alt+w
g.
$
c.
dd
h.
x
d.
yy
i.
k
e.
dot (.)
1. in Emacs, cancels the current command
2. used in vi to move up one line
3. used in vi to move to the end of the current line
4. used in Emacs to scroll up one screen
5. used in vi to delete the text at the cursor
6. used in vi to delete the current line
7. used in vi to copy lines
8. used in vi to search forward for a pattern of characters
9. acts as a wildcard for one character in vi
page-pf5
SHORT ANSWER
1. What is ASCII?
2. What is “compiling”?
3. What is an editor?
4. What is a text editor?
5. What is a line editor?
page-pf6
6. How can you save a file without exiting vi?
7. How can you turn on line numbering in vi?
8. How is “copy and paste” and “cut and paste” performed in vi?
9. How can you access the online help documentation in the vi editor?
10. What is a macro?

Trusted by Thousands of
Students

Here are what students say about us.

Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.