Last Updated on October 26, 2019 by Admin
NDG Linux Essentials 2.0 Chapter 11 Exam Online
NDG -- Linux Essentials 2.0 -- Chapter 11 Exam
Quiz-summary
0 of 18 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
Information
NDG — Linux Essentials 2.0 — Chapter 11 Exam
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 18 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- Answered
- Review
-
Question 1 of 18
1. Question
1 pointsA file begins with#!/bin/csh
. This means:Correct
Incorrect
-
Question 2 of 18
2. Question
2 pointsWhich are appropriate editors for writing shell scripts?
(choose two)Correct
Incorrect
-
Question 3 of 18
3. Question
1 pointsMost ofnano
’s commands take the form of:Correct
Incorrect
-
Question 4 of 18
4. Question
1 pointsWhat does this shell script do?
FOO=/tmp/foo if [ ! –d $FOO ]; then mkdir $FOO fi
Correct
Incorrect
-
Question 5 of 18
5. Question
2 pointsWhich of the following are correct about for and while loops?
(choose two)Correct
Incorrect
-
Question 6 of 18
6. Question
1 pointsGiven the following part of a script:
if [ -f $1 ]; then echo “I am here” fi
What is the meaning of $1?
Correct
Incorrect
-
Question 7 of 18
7. Question
1 pointsGiven the following script that is run through
./test.sh hello goodbye
:if [ -f $2 ]; then echo "I am here" fi
When will “I am here” be printed?
Correct
Incorrect
-
Question 8 of 18
8. Question
1 pointsWhat is the correct way to assign the word “Hello” to a variable?
Correct
Incorrect
-
Question 9 of 18
9. Question
1 pointsWhat is the correct way to save the current directory to a variable?
Correct
Incorrect
-
Question 10 of 18
10. Question
1 pointsWhich shell command accepts input from the user’s keyboard?
Correct
Incorrect
-
Question 11 of 18
11. Question
1 pointsWhat information is held inside$?
?Correct
Incorrect
-
Question 12 of 18
12. Question
1 pointsHow would you finish your script with an exit code of 42?
Correct
Incorrect
-
Question 13 of 18
13. Question
1 pointsTheif
command looks for what exit code to consider a condition to be true?Correct
Incorrect
-
Question 14 of 18
14. Question
1 pointsThe number of users logged in is in a variable called USERS. How would you test to see if 5 users are logged in?
Correct
Incorrect
-
Question 15 of 18
15. Question
2 pointsGiven the following script:
while [ ! –f /tmp/foo ]; do echo –n “.” process_data > /tmp/foo done
Which of the following are true?
(choose two)
Correct
Incorrect
-
Question 16 of 18
16. Question
1 pointsA conditional that lets you make multiple comparisons with a pattern is called:
Correct
Incorrect
-
Question 17 of 18
17. Question
1 pointsWhat is the meaning of$(( $i + 1))
?Correct
Incorrect
-
Question 18 of 18
18. Question
1 pointsHow would you write a test that says “if /tmp/foo is a directory or USERS is greater than 5”?
Correct
Incorrect