Quiz-summary
0 of 26 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
Information
Because of some problems with how to create an Test Online, we temporarily use the symbol (\) instead of the symbol (/) in some sentences. So you need to change the symbol (\)to the symbol (/) when you do it in practice. Thank you!
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 26 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
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- Answered
- Review
-
Question 1 of 26
1. Question
1 pointsWhich of the following steps is NOT performed while creating a shell script?Correct
Incorrect
-
Question 2 of 26
2. Question
1 pointsThe first line in a shell script reads:#!/bin/bashWhat does it signify?Correct
Incorrect
-
Question 3 of 26
3. Question
1 pointsThe command bash script_file can be used to directly execute a shell script. True or False?Correct
Incorrect
-
Question 4 of 26
4. Question
1 pointsWhich of the following is placed before a script name to execute it from the current directory?Correct
Incorrect
-
Question 5 of 26
5. Question
1 pointsInstead of specifying the current directory, it is better to place the script in a location that is included in the __________ variable.Correct
Incorrect
-
Question 6 of 26
6. Question
1 pointsAn ideal place for a regular user (not a super user), to place their shell scripts would be:Correct
Incorrect
-
Question 7 of 26
7. Question
1 pointsUse of SETUID permission on scripts is the best way to specify permissions.True or False?Correct
Incorrect
-
Question 8 of 26
8. Question
1 pointsA user has written a few scripts for private use. Which of the following commands should be used so that no one else has execute permission?Correct
Incorrect
-
Question 9 of 26
9. Question
1 pointsWhich of the following commands will produce the same result as start=`date`?Correct
Incorrect
-
Question 10 of 26
10. Question
1 pointsThe __________ statement can be used to gather information from the user running the script.Correct
Incorrect
-
Question 11 of 26
11. Question
1 pointsThe command read –p will capture the current position of the mouse pointer. True or False?Correct
Incorrect
-
Question 12 of 26
12. Question
1 pointsConditional statements CANNOT be used to determine which of the following?Correct
Incorrect
-
Question 13 of 26
13. Question
1 pointsWhen will the condition test –n STRING be true?Correct
Incorrect
-
Question 14 of 26
14. Question
1 pointsIn shell scripts, the conditional statement if must always end with:Correct
Incorrect
-
Question 15 of 26
15. Question
1 pointsThe return status from a command is 1. What does this indicate?Correct
Incorrect
-
Question 16 of 26
16. Question
1 pointsWhich of the following will NOT handle bad user input properly:Correct
Incorrect
-
Question 17 of 26
17. Question
1 pointsA user wants an email sent when his shell script is executed successfully. Which of the following commands in the script can do this?Correct
Incorrect
-
Question 18 of 26
18. Question
1 pointsThe __________ statement is most useful in performing an operation on multiple items.Correct
Incorrect
-
Question 19 of 26
19. Question
1 pointsWhat will the following statement do?for name in `cat /root/users`Correct
Incorrect
-
Question 20 of 26
20. Question
1 pointsThe output of the command seq 10 10 30 will be:Correct
Incorrect
-
Question 21 of 26
21. Question
1 pointsThe ___________ command is used to print a sequence of numbers.Correct
Incorrect
-
Question 22 of 26
22. Question
1 pointsThe statement if [ -d file ] will be true, if the file:Correct
Incorrect
-
Question 23 of 26
23. Question
1 pointsWhich of the following file test statement conditions is NOTcorrect?Correct
Incorrect
-
Question 24 of 26
24. Question
1 pointsA user wants to execute a script called test1_script. What type of permission does she need on the test1_script file?Correct
Incorrect
-
Question 25 of 26
25. Question
1 pointsCommand substitution can be used to insert the output of a command as another command’s argument.True or False?Correct
Incorrect
-
Question 26 of 26
26. Question
1 pointsA user jamie already exists in the system. The command grep jamie \etc\passwd displays one user record. Running the echo $? command immediately after the grep command would result in what output?Correct
Incorrect