0 of 19 questions completed
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:
0 of 19 questions answered correctly
Time has elapsed
You have reached 0 of 0 points, (0)
1. Question1 pointsThe echo command:CorrectIncorrect
2. Question1 pointsA file begins with #!/bin/csh. This means:CorrectIncorrect
3. Question1 pointsWhich are appropriate editors for writing shell scripts? (choose two)CorrectIncorrect
4. Question1 pointsMost of nano’s commands take the form of:CorrectIncorrect
5. Question1 pointsWhat does this shell script do? FOO=/tmp/foo if [ ! –d $FOO ]; then mkdir $FOO fiCorrectIncorrect
6. Question1 pointsWhich of the following are correct about for and while loops? (choose two)CorrectIncorrect
7. Question1 pointsGiven the following part of a script: if [ -f $1 ]; then echo “I am here” fi What is the meaning of $1?CorrectIncorrect
8. Question1 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?CorrectIncorrect
9. Question1 pointsWhat is the correct way to assign the word “Hello” to a variable?CorrectIncorrect
10. Question1 pointsWhat is the correct way to save the current directory to a variable?CorrectIncorrect
11. Question1 pointsWhich shell command accepts input from the user’s keyboard?CorrectIncorrect
12. Question1 pointsWhat information is held inside $? ?CorrectIncorrect
13. Question1 pointsHow would you finish your script with an exit code of 42?CorrectIncorrect
14. Question1 pointsThe if command looks for what exit code to consider a condition to be true?CorrectIncorrect
15. Question1 pointsThe number of users logged in is in a variable called USERS. How would you test to see if 5 users are logged in?CorrectIncorrect
16. Question1 pointsGiven the following script: while [ ! –f /tmp/foo ]; do echo –n “.” process_data > /tmp/foo done Which of the following are true? (choose two)CorrectIncorrect
17. Question1 pointsA conditional that lets you make multiple comparisons with a pattern is called:CorrectIncorrect
18. Question1 pointsWhat is the meaning of $(( $i + 1)) ?CorrectIncorrect
19. Question1 pointsHow would you write a test that says “if /tmp/foo is a directory or USERS is greater than 5”?CorrectIncorrect