mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-30 16:01:14 -04:00
feat(curriclum): Add questions, answers & distractors for nano quiz (#56436)
Co-authored-by: Naomi the Technomancer <accounts+github@nhcarrigan.com>
This commit is contained in:
@@ -17,439 +17,439 @@ Answer all of the questions below correctly to pass the quiz.
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
What is nano?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
A word processor.
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
A program that makes text smaller.
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
A prefix that means small, tiny.
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
Nano is a small, easy-to-use text editor that runs in a terminal.
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
How do you run or start nano from a terminal?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
Type `run nano`, then press the **Enter** key
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
Type `start nano`, then press the **Enter** key
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
Type `nano.exe`, then press the **Enter** key
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
Type `nano`, then press the **Enter** key
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
How do you open a text file using nano?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
Type `nano.exe [FILE]`, then press the **Enter** key
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
Type `emacs [FILE]`, then press the **Enter** key
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
Type `vim [FILE]`, then press the **Enter** key
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
Type `nano [FILE]`, then press the **Enter** key
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
What type of files is nano capable of creating and modifiying?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
PDF files
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
Word documents
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
Excel spreadsheets
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
Plain text files
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
With nano already running, what is the command or sequence of keystrokes to save the current file?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
**Alt + E**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
**Ctrl + T**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
**Ctrl + U**
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
**Ctrl + S**
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
While running nano, how can you find help about using nano?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
Type `nano -?`
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
Type `nano --help`
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
Perform a web search.
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
Press **Ctrl + G**
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
Where can you find the official documentation for nano?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
GNU.org
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
SuperUser.com
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
StackOverflow.com
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
https://www.nano-editor.org/dist/latest/nano.html
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
What is/are the keystroke(s) to exit nano?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
Press **Ctrl + Alt + Del**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
Type `exit`
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
Press **Esc**
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
Press **Ctrl + X**
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
What keystrokes allow you to begin a search of the current file?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
Press **Alt + E**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
Press **Ctrl + U**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
Press **Ctrl + K**
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
Press **Ctrl + B** or **Ctrl + F**
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
What keystrokes allow you to begin a spell check of the current file?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
Press **Ctrl + D**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
Press **Ctrl + T Ctrl + O**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
Press **Ctrl + G**
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
Press **Ctrl + T Ctrl + S**
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
How can you comment or uncomment a line of text?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
Press **Ctrl + U**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
Press **Alt + C**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
Press **Alt + 2**
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
Press **Alt + 3**
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
How can you display/hide line numbers while using nano?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
Press **Alt + H**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
Press **Ctrl + 1**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
Press **Alt + 3**
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
Press **Alt + N**
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
How do you undo a previous action in nano?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
**Ctrl + Shift + U**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
**Ctrl + Y**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
**Ctrl + Z**
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
**Alt + U**
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
How do you move the cursor to the beginning of the file in nano?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
**Ctrl + Y**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
**Ctrl + PgUp**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
**Ctrl + Home**
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
**Alt + \\**
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
What is the command to paste a cut line in nano?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
**Alt + V**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
**Ctrl + Y**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
**Ctrl + V**
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
**Ctrl + U**
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
What is the command to a cut line in nano?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
**Ctrl + S**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
**Ctrl + R**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
**Ctrl + C**
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
**Ctrl + K**
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
What is the command to go to a specific line number?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
**Alt + 2**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
**Ctrl + 1**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
**Ctrl + G**
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
**Alt + G**
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
What is the command to justify text in nano?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
**Ctrl + T**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
**Ctrl + B**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
**Alt + J**
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
**Ctrl + J**
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
What is the command to run a syntax check in nano?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
**Alt + /**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
**Ctrl + L**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
**Ctrl + T Ctrl + O**
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
**Ctrl + T Ctrl + Y**
|
||||
|
||||
### --question--
|
||||
|
||||
#### --text--
|
||||
|
||||
Placeholder question
|
||||
What is the command to move the cursor to the beginning of a line?
|
||||
|
||||
#### --distractors--
|
||||
|
||||
Placeholder distractor 1
|
||||
**Ctrl + B**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 2
|
||||
**Ctrl + E**
|
||||
|
||||
---
|
||||
|
||||
Placeholder distractor 3
|
||||
**Alt + A**
|
||||
|
||||
#### --answer--
|
||||
|
||||
Placeholder answer
|
||||
**Ctrl + A**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user