Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. read command is shell’s internal tool.
Correct Answer is : TRUE
2. A single read statement can be used with one or more variables.
Correct Answer is : TRUE
3. What are positional parameters?
Correct Answer is : special variables for assigning arguments from the command line
4. The first argument is read by the shell into the parameter ___
Correct Answer is : 1
5. The complete set of positional parameters is stored in ______ as a single string.
Correct Answer is : $*
6. Which of the following is used for storing the number of positional parameters?
Correct Answer is : $#
7. Which of the following commands let us perform a set of instructions repeatedly?
Correct Answer is : for, while, until
8. Which of the following keywords are used in while loop?
Correct Answer is : do and done
9. until loop operates with a reverse logic as used in while loop.
Correct Answer is : TRUE
10. Which one of the following is used for looping with a list?
Correct Answer is : for
11. Which of the following loop statements uses do and done keyword?
Correct Answer is : for and while
12. Which command is used for changing filename extensions?
Correct Answer is : basename
13. Which command is used by the shell for manipulating positional parameters?
Correct Answer is : set
14. ____ statement is used for shifting arguments left.
Correct Answer is : shift
15. Which one of the following is an internal command?
Correct Answer is : set
16. Which symbol is used with the set command for command substitution?
Correct Answer is : —
17. The ____ allows us to read data from the same file containing the script.
Correct Answer is : <<
18. Any command using standard input can take the input from here document.
Correct Answer is : TRUE
19. Which of the following command doesn’t accept a filename as an argument?
Correct Answer is : mailx
20. We can use the here document with interactive programs also.
Correct Answer is : TRUE
Similar Interview Questions
Search for latest jobs
Get $5 added to your wallet for registering an account. Refer others and get $1 for each successful referral. Earn while you search for jobs and redeem in gift cards!