Deck 3: Mastering Editors
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/51
Play
Full screen (f)
Deck 3: Mastering Editors
1
Emacs is a modal editor.
False
2
Compiled and interpreted files that can be run are called ____ program files.
A)binary
B)executable
C)assembly
D)dynamic
A)binary
B)executable
C)assembly
D)dynamic
B
3
A byte consists of ____ binary digits.
A)four
B)eight
C)ten
D)twelve
A)four
B)eight
C)ten
D)twelve
B
4
Like the vi editor,Emacs lets you search for specific text.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
5
For some languages,such as Chinese,the ASCII character set is preferred instead of the Unicode character set.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
6
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
B):q!
C):se
D):sq
A):wq
B):q!
C):se
D):sq
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
7
The vi editor works in three modes: insert mode,____ mode,and extended mode.
A)edit
B)line
C)screen
D)command
A)edit
B)line
C)screen
D)command
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
8
In vi,a tilde (~)precedes all line-oriented commands.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
9
The vi editor's ____ mode is started by pressing Esc.
A)edit
B)insert
C)ex
D)command
A)edit
B)insert
C)ex
D)command
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
10
UNIX-Linux normally include two editors: vi and ____.
A)Emacs
B)Kate
C)Pico
D)OpenOffice
A)Emacs
B)Kate
C)Pico
D)OpenOffice
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
11
Emacs is a screen editor.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
12
Files that contain nonprintable characters,such as machine instructions,are called binary files.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
13
Computer files containing nothing but printable characters are called ____ files.
A)text
B)binary
C)document
D)ASCII
A)text
B)binary
C)document
D)ASCII
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
14
The ASCII character set represents ____ characters.
A)256
B)512
C)16,384
D)65,536
A)256
B)512
C)16,384
D)65,536
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
15
In the vi editor,lines containing a(n)____ are not part of the file;they indicate lines on the screen only.
A)colon (:)
B)semicolon (;)
C)tilde (~)
D)exclamation sign (!)
A)colon (:)
B)semicolon (;)
C)tilde (~)
D)exclamation sign (!)
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
16
____ are typically not compiled into machine code prior to running,but are executed through an interpreter.
A)Programs
B)Executable programs
C)Scripts
D)Libraries
A)Programs
B)Executable programs
C)Scripts
D)Libraries
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
17
Insert mode,which lets you enter text,is accessed by typing the letter ____ after the vi editor is started.
A)"e"
B)"i"
C)"d"
D)"n"
A)"e"
B)"i"
C)"d"
D)"n"
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
18
The exclusive use of 0s and 1s as a way to communicate with the computer is known as ____ language.
A)mathematical
B)logical
C)binary
D)machine
A)mathematical
B)logical
C)binary
D)machine
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
19
Unicode offers up to ____ characters.
A)256
B)512
C)16,384
D)65,536
A)256
B)512
C)16,384
D)65,536
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
20
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 (:)
B)semicolon (;)
C)tilde (~)
D)exclamation sign (!)
A)colon (:)
B)semicolon (;)
C)tilde (~)
D)exclamation sign (!)
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
21
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
B):!
C):c
D):$
A):q
B):!
C):c
D):$
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
22
You can start Emacs by entering the ____ command in the terminal window or at a command line in UNIX-Linux.
A)e
B)em
C)emcs
D)emacs
A)e
B)em
C)emcs
D)emacs
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
23
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 (.)
used in vi to delete the text at the cursor
a.Ctrl+g
f./
b.Alt+w
g.$
c.dd
h.x
d.yy
i.k
e.dot (.)
used in vi to delete the text at the cursor
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
24
The ____ Emacs command is used to mark the cursor location.
A)Ctrl+@
B)Ctrl+>
C)Ctrl+<
D)Ctrl+m
A)Ctrl+@
B)Ctrl+>
C)Ctrl+<
D)Ctrl+m
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
25
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 (.)
used in vi to copy lines
a.Ctrl+g
f./
b.Alt+w
g.$
c.dd
h.x
d.yy
i.k
e.dot (.)
used in vi to copy lines
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
26
You can view general Emacs documentation by entering ____ (press this one or two times)while you are in Emacs.
A)Alt+?
B)Ctrl+?
C)Alt+h
D)Ctrl+h
A)Alt+?
B)Ctrl+?
C)Alt+h
D)Ctrl+h
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
27
Graphics files include bit patterns-rows and columns of dots called a(n)____________________-that must be translated by graphics software into an image.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
28
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 (.)
used in vi to search forward for a pattern of characters
a.Ctrl+g
f./
b.Alt+w
g.$
c.dd
h.x
d.yy
i.k
e.dot (.)
used in vi to search forward for a pattern of characters
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
29
You can use the Del or ____________________ keys to delete individual characters in Emacs.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
30
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 (.)
in Emacs,cancels the current command
a.Ctrl+g
f./
b.Alt+w
g.$
c.dd
h.x
d.yy
i.k
e.dot (.)
in Emacs,cancels the current command
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
31
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 (.)
used in vi to delete the current line
a.Ctrl+g
f./
b.Alt+w
g.$
c.dd
h.x
d.yy
i.k
e.dot (.)
used in vi to delete the current line
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
32
You can use the ____ command to turn on the word wrap feature in Emacs.
A)Alt+w
B)Ctrl+w
C)Alt+q
D)Ctrl+q
A)Alt+w
B)Ctrl+w
C)Alt+q
D)Ctrl+q
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
33
You can use ____ to search backward in Emacs.
A)Alt+r
B)Ctrl+r
C)Alt+b
D)Ctrl+b
A)Alt+r
B)Ctrl+r
C)Alt+b
D)Ctrl+b
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
34
The term ____________________ is the abbreviation for binary term.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
35
The ____ Emacs command is used to move the cursor to the beginning of the file.
A)Alt+<
B)Ctrl+<
C)Alt+b
D)Ctrl+b
A)Alt+<
B)Ctrl+<
C)Alt+b
D)Ctrl+b
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
36
A binary digit,called a(n)____________________ for short,is in one of two states.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
37
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 (.)
used in vi to move to the end of the current line
a.Ctrl+g
f./
b.Alt+w
g.$
c.dd
h.x
d.yy
i.k
e.dot (.)
used in vi to move to the end of the current line
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
38
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 (.)
used in Emacs to scroll up one screen
a.Ctrl+g
f./
b.Alt+w
g.$
c.dd
h.x
d.yy
i.k
e.dot (.)
used in Emacs to scroll up one screen
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
39
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 (.)
used in vi to move up one line
a.Ctrl+g
f./
b.Alt+w
g.$
c.dd
h.x
d.yy
i.k
e.dot (.)
used in vi to move up one line
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
40
You can use the ____________________ (line print)shell command to print a file from vi.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
41
How can you access the online help documentation in the vi editor?
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
42
What is an editor?
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
43
What is "compiling"?
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
44
What is a macro?
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
45
What is ASCII?
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
46
What is a line editor?
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
47
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 (.)
acts as a wildcard for one character in vi
a.Ctrl+g
f./
b.Alt+w
g.$
c.dd
h.x
d.yy
i.k
e.dot (.)
acts as a wildcard for one character in vi
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
48
How can you save a file without exiting vi?
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
49
How is "copy and paste" and "cut and paste" performed in vi?
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
50
What is a text editor?
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
51
How can you turn on line numbering in vi?
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck