Quiz-summary
0 of 19 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
Information
It is an exam online; you must choose the correct answer to each question. You will pass the exam if you have more than 80 points.
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 19 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
- 19
- Answered
- Review
-
Question 1 of 19
1. Question
1 pointsThe echo command:Correct
Incorrect
-
Question 2 of 19
2. Question
1 pointsA file begins with #!/bin/csh. This means:Correct
Incorrect
-
Question 3 of 19
3. Question
1 pointsWhich are appropriate editors for writing shell scripts? (choose two)Correct
Incorrect
-
Question 4 of 19
4. Question
1 pointsMost of nano’s commands take the form of:Correct
Incorrect
-
Question 5 of 19
5. Question
1 pointsWhat does this shell script do? FOO=/tmp/foo if [ ! –d $FOO ]; then mkdir $FOO fiCorrect
Incorrect
-
Question 6 of 19
6. Question
1 pointsWhich of the following are correct about for and while loops? (choose two)Correct
Incorrect
-
Question 7 of 19
7. 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 8 of 19
8. 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 9 of 19
9. Question
1 pointsWhat is the correct way to assign the word “Hello” to a variable?Correct
Incorrect
-
Question 10 of 19
10. Question
1 pointsWhat is the correct way to save the current directory to a variable?Correct
Incorrect
-
Question 11 of 19
11. Question
1 pointsWhich shell command accepts input from the user’s keyboard?Correct
Incorrect
-
Question 12 of 19
12. Question
1 pointsWhat information is held inside $? ?Correct
Incorrect
-
Question 13 of 19
13. Question
1 pointsHow would you finish your script with an exit code of 42?Correct
Incorrect
-
Question 14 of 19
14. Question
1 pointsThe if command looks for what exit code to consider a condition to be true?Correct
Incorrect
-
Question 15 of 19
15. 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 16 of 19
16. Question
1 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 17 of 19
17. Question
1 pointsA conditional that lets you make multiple comparisons with a pattern is called:Correct
Incorrect
-
Question 18 of 19
18. Question
1 pointsWhat is the meaning of $(( $i + 1)) ?Correct
Incorrect
-
Question 19 of 19
19. Question
1 pointsHow would you write a test that says “if /tmp/foo is a directory or USERS is greater than 5”?Correct
Incorrect
9.It’s A=’Hello’