Unix Interview Questions - 38 | Snaprecruit.com
Unix Interview Questions - 38 | Snaprecruit.com
JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing
Enterprises
Unix interview questions part 38
Unix interview questions part 38
Back
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.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
2. A single read statement can be used with one or more variables.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
3. What are positional parameters?
A. special variables for assigning arguments from the command line
B. pattern matching parameters
C. special variables for reading user input
D. special variables and patterns
Show Correct Answer
Correct Answer is :
special variables for assigning arguments from the command line
4. The first argument is read by the shell into the parameter ___
A. 1
B. 3
C. $$
D. 1
Show Correct Answer
Correct Answer is :
1
5. The complete set of positional parameters is stored in ______ as a single string.
A. $n
B. $#
C. $*
D. $$
Show Correct Answer
Correct Answer is :
$*
6. Which of the following is used for storing the number of positional parameters?
A. $n
B. $#
C. $*
D. 2
Show Correct Answer
Correct Answer is :
$#
7. Which of the following commands let us perform a set of instructions repeatedly?
A. for
B. while
C. until
D. for, while, until
Show Correct Answer
Correct Answer is :
for, while, until
8. Which of the following keywords are used in while loop?
A. do
B. done
C. then
D. do and done
Show Correct Answer
Correct Answer is :
do and done
9. until loop operates with a reverse logic as used in while loop.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
10. Which one of the following is used for looping with a list?
A. while
B. until
C. case
D. for
Show Correct Answer
Correct Answer is :
for
11. Which of the following loop statements uses do and done keyword?
A. for
B. while
C. case
D. for and while
Show Correct Answer
Correct Answer is :
for and while
12. Which command is used for changing filename extensions?
A. chown
B. rename
C. basename
D. rm
Show Correct Answer
Correct Answer is :
basename
13. Which command is used by the shell for manipulating positional parameters?
A. set
B. cut
C. case
D. paste
Show Correct Answer
Correct Answer is :
set
14. ____ statement is used for shifting arguments left.
A. set
B. shift
C. cut
D. paste
Show Correct Answer
Correct Answer is :
shift
15. Which one of the following is an internal command?
A. cut
B. expr
C. set
D. Is
Show Correct Answer
Correct Answer is :
set
16. Which symbol is used with the set command for command substitution?
A. –
B. —
C. ??
D. _
Show Correct Answer
Correct Answer is :
—
17. The ____ allows us to read data from the same file containing the script.
A. >>
B. <<
C. !!
D. —
Show Correct Answer
Correct Answer is :
<<
18. Any command using standard input can take the input from here document.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
19. Which of the following command doesn’t accept a filename as an argument?
A. cut
B. ls
C. paste
D. mailx
Show Correct Answer
Correct Answer is :
mailx
20. We can use the here document with interactive programs also.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
Similar Interview Questions
Search for latest jobs
Find Jobs