Deck 4: Creating and Editing Files With Text 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
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/49
Play
Full screen (f)
Deck 4: Creating and Editing Files With Text Editors
1
The main purpose of a text editor is to create a file that can be used by another program.
True
2
You must be in command mode to type text.
False
3
In vim, you modify text by using the keyboard instead of the mouse.
True
4
Yank commands delete text.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
5
You can undo changes you made to a file by typing u.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
6
Which word processor is included with the GNOME desktop environment?
A) Microsoft Word
B) OpenOffice.org Writer
C) Corel WordPerfect X5
D) LibreOffice Writer
A) Microsoft Word
B) OpenOffice.org Writer
C) Corel WordPerfect X5
D) LibreOffice Writer
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
7
Within KWrite, you can select syntax highlighting from the Tools menu after enabling ____ mode.
A) super user
B) root user
C) administrator
D) power user
A) super user
B) root user
C) administrator
D) power user
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
8
Which GUI text editor is included with GNOME?
A) Gedit
B) TextPad
C) vi
D) Emacs
A) Gedit
B) TextPad
C) vi
D) Emacs
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
9
Vim is a ____ editor meaning it can run in different operating modes.
A) multi-operational
B) hierarchal
C) modular
D) virtual
A) multi-operational
B) hierarchal
C) modular
D) virtual
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
10
When you start vim, you are in ____ mode automatically.
A) extended
B) insert
C) line
D) command
A) extended
B) insert
C) line
D) command
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
11
You type ____ in vim command mode to move the cursor one space to the left.
A) h
B) j
C) k
D) l
A) h
B) j
C) k
D) l
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
12
You type ____ in vim command mode to move the cursor one space up.
A) h
B) j
C) k
D) l
A) h
B) j
C) k
D) l
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
13
You type ____ in vim command mode to repeat a search in the opposite direction.
A) n
B) N
C) u
D) U
A) n
B) N
C) u
D) U
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
14
After you finish entering text in vim insert mode, you can press the ____ key to change back to command mode.
A) ESC
B) Back
C) Shift
D) Del
A) ESC
B) Back
C) Shift
D) Del
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
15
Which vim command allows text to be entered at the cursor?
A) a
B) A
C) i
D) I
A) a
B) A
C) i
D) I
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
16
Which vim command replaces a single character and returns to command mode automatically?
A) r
B) R
C) s
D) S
A) r
B) R
C) s
D) S
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
17
Which vim command deletes the entire line and switches to insert mode?
A) r
B) R
C) s
D) S
A) r
B) R
C) s
D) S
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
18
Which vim command deletes the entire line the cursor is on?
A) x
B) X
C) dd
D) del
A) x
B) X
C) dd
D) del
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
19
Which vim command allows you to copy the word the cursor is on?
A) yank
B) yy
C) cp
D) cpy
A) yank
B) yy
C) cp
D) cpy
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
20
What does the symbol indicate in the following command: #yy?
A) It indicates that the command must be executed starting at the root.
B) It represents the number of times to repeat the command automatically.
C) It represents the number of lines you want to yank.
D) It indicates that the editor should save and close upon command completion.
A) It indicates that the command must be executed starting at the root.
B) It represents the number of times to repeat the command automatically.
C) It represents the number of lines you want to yank.
D) It indicates that the editor should save and close upon command completion.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
21
How many times can you use the vim undo command?
A) One time
B) Ten times
C) It varies and is based on the size of the undo buffer
D) Until you have reached your oldest change
A) One time
B) Ten times
C) It varies and is based on the size of the undo buffer
D) Until you have reached your oldest change
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
22
Typing ____ at the extended mode prompt saves the file and exits the vim text editor.
A) wq
B) wx
C) ws
D) sx
A) wq
B) wx
C) ws
D) sx
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
23
Typing ____ at the extended mode prompt quits vim without saving the file and ignores warnings that changes haven't been saved.
A) wq!
B) q!
C) qq
D) qq!
A) wq!
B) q!
C) qq
D) qq!
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
24
Which command searches the line the cursor is on for the first occurrence of the string old and replaces it with the string new?
A) :s/old/new
B) :s/new/old
C) :3,15s/old/new/g
D) :%s/old/new/g
A) :s/old/new
B) :s/new/old
C) :3,15s/old/new/g
D) :%s/old/new/g
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
25
Which vim command shows line numbers?
A) :set num
B) :set nu
C) :show num
D) :show nu
A) :set num
B) :set nu
C) :show num
D) :show nu
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
26
A(n) ____________________ is a program used to create and edit plain text files.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
27
A(n) ____________________ is a text file containing a sequence of commands.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
28
KWrite has an advanced feature known as ____________________, to display text in different colors and fonts for programming languages such as C, C++, Java, HTML, and Perl.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
29
KWrite has an advanced feature known as ____________________, which are markers placed on certain lines to help navigate through a text file.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
30
A(n) ____________________ is an area of RAM used for temporary storage.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
31
Match each statement with an item
-An advanced vim navigational command that moves the cursor to the top of the screen.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
-An advanced vim navigational command that moves the cursor to the top of the screen.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
32
Match each statement with an item
-An advanced vim navigational command that moves the cursor to the last line of the screen.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
-An advanced vim navigational command that moves the cursor to the last line of the screen.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
33
Match each statement with an item
-An advanced vim navigational command that moves the display down a full screen.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
-An advanced vim navigational command that moves the display down a full screen.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
34
Match each statement with an item
-An advanced vim navigational command that moves the cursor one space to the right.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
-An advanced vim navigational command that moves the cursor one space to the right.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
35
Match each statement with an item
-An advanced vim navigational command that moves the cursor to the last line of the file.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
-An advanced vim navigational command that moves the cursor to the last line of the file.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
36
Match each statement with an item
-An advanced vim navigational command that moves the cursor to the end of the current line.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
-An advanced vim navigational command that moves the cursor to the end of the current line.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
37
Match each statement with an item
-An advanced vim navigational command that moves the cursor to the middle of the screen.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
-An advanced vim navigational command that moves the cursor to the middle of the screen.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
38
Match each statement with an item
-An advanced vim navigational command that moves the display up a full screen.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
-An advanced vim navigational command that moves the display up a full screen.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
39
Match each statement with an item
-An advanced vim navigational command that moves the cursor to the beginning of the next line.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
-An advanced vim navigational command that moves the cursor to the beginning of the next line.
A) Spacebar
B) Enter
C) $
D) H
E) M
F) L
G) G
H) Ctrl+F
I) Ctrl+B
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
40
Compare word processors and text editors.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
41
Compare a Linux GUI text editor to Windows Notepad.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
42
Describe two ways to start KWrite.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
43
Explain three options of the Gedit syntax highlighting feature.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
44
Describe the autosave Gedit feature and explain the advantage of using it.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
45
Provide a brief history of the vi command-line text editor.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
46
Describe two ways to start the vim editor.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
47
Explain why navigational keys are programmed as letters on the keyboard and identify the four keys.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
48
What does the /text command option do and why is it important to know?
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
49
Explain the difference between a string of text and a word.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck