Deck 4: Creating and Editing Files With Text Editors

Full screen (f)
exit full mode
Question
The main purpose of a text editor is to create a file that can be used by another program.
Use Space or
up arrow
down arrow
to flip the card.
Question
You must be in command mode to type text.
Question
In vim, you modify text by using the keyboard instead of the mouse.
Question
Yank commands delete text.
Question
You can undo changes you made to a file by typing u.
Question
Which word processor is included with the GNOME desktop environment?

A) Microsoft Word
B) OpenOffice.org Writer
C) Corel WordPerfect X5
D) LibreOffice Writer
Question
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
Question
Which GUI text editor is included with GNOME?

A) Gedit
B) TextPad
C) vi
D) Emacs
Question
Vim is a ____ editor meaning it can run in different operating modes.

A) multi-operational
B) hierarchal
C) modular
D) virtual
Question
When you start vim, you are in ____ mode automatically.

A) extended
B) insert
C) line
D) command
Question
You type ____ in vim command mode to move the cursor one space to the left.

A) h
B) j
C) k
D) l
Question
You type ____ in vim command mode to move the cursor one space up.

A) h
B) j
C) k
D) l
Question
You type ____ in vim command mode to repeat a search in the opposite direction.

A) n
B) N
C) u
D) U
Question
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
Question
Which vim command allows text to be entered at the cursor?

A) a
B) A
C) i
D) I
Question
Which vim command replaces a single character and returns to command mode automatically?

A) r
B) R
C) s
D) S
Question
Which vim command deletes the entire line and switches to insert mode?

A) r
B) R
C) s
D) S
Question
Which vim command deletes the entire line the cursor is on?

A) x
B) X
C) dd
D) del
Question
Which vim command allows you to copy the word the cursor is on?

A) yank
B) yy
C) cp
D) cpy
Question
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.
Question
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
Question
Typing ____ at the extended mode prompt saves the file and exits the vim text editor.

A) wq
B) wx
C) ws
D) sx
Question
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!
Question
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
Question
Which vim command shows line numbers?

A) :set num
B) :set nu
C) :show num
D) :show nu
Question
A(n) ____________________ is a program used to create and edit plain text files.
Question
A(n) ____________________ is a text file containing a sequence of commands.
Question
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.
Question
KWrite has an advanced feature known as ____________________, which are markers placed on certain lines to help navigate through a text file.
Question
A(n) ____________________ is an area of RAM used for temporary storage.
Question
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
Question
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
Question
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
Question
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
Question
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
Question
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
Question
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
Question
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
Question
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
Question
Compare word processors and text editors.
Question
Compare a Linux GUI text editor to Windows Notepad.
Question
Describe two ways to start KWrite.
Question
Explain three options of the Gedit syntax highlighting feature.
Question
Describe the autosave Gedit feature and explain the advantage of using it.
Question
Provide a brief history of the vi command-line text editor.
Question
Describe two ways to start the vim editor.
Question
Explain why navigational keys are programmed as letters on the keyboard and identify the four keys.
Question
What does the /text command option do and why is it important to know?
Question
Explain the difference between a string of text and a word.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/49
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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!
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
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
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
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
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
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
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
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
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
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
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
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
locked card icon
Unlock Deck
Unlock for access to all 49 flashcards in this deck.