JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 39
Unix interview questions part 39
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. ____ command is the appropriate way to interrupt a program.
A. kill
B. SIGKILL
C. INT
D. trap
Show Correct Answer
Correct Answer is :
trap
2. Which of the following option is used with a set for debugging shell scripts?
A. -a
B. -x
C. -d
D. -e
Show Correct Answer
Correct Answer is :
-x
3. Suppose x =10, then what will be the value of x$x$?
A. undefined
B. erroneous
C. 100
D. x10$
Show Correct Answer
Correct Answer is :
x10$
4. Given x=10 then, x$x$ == $x$x. The given statement is ____
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
5. A shell script stopped running when we change its name. Why?
A. location of the file changed
B. we can’t change the name of the script
C. $0 was used in the script
D. many possible reasons
Show Correct Answer
Correct Answer is :
$0 was used in the script
6. Where is the exit status of a command stored?
A. 0
B. $>
C. 1
D. $?
Show Correct Answer
Correct Answer is :
$?
7. Which of the following is false?
A. here document provides standard input to any script non interactively
B. read command is used for making scripts interactive
C. $* stores the number of arguments specified
D. && and || are logical operators
Show Correct Answer
Correct Answer is :
$* stores the number of arguments specified
8. test statement cannot ______
A. compare two numbers
B. compare two strings
C. compare two files
D. check a file’s attributes
Show Correct Answer
Correct Answer is :
compare two files
9. ____ option is used with a test for checking if the file exists and has the size greater than zero.
A. -f
B. -r
C. -e
D. -s
Show Correct Answer
Correct Answer is :
-s
10. Every time shift command is used, the leftmost variable is lost.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
11. The UNIX shell is both _______ and _______ language.
A. interactive, responsive
B. interpreter, executing
C. scripting, interpreter
D. high level, low level
Show Correct Answer
Correct Answer is :
scripting, interpreter
12. Which of the following function(s) are performed by an interactive shell?
A. job control
B. history
C. aliases
D. job control, history, aliases
Show Correct Answer
Correct Answer is :
job control, history, aliases
13. Every feature used in an interactive shell can also be used by a shell script.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
14. Which one of the following is arguably the best shell to use?
A. Bash
B. Korn
C. C
D. Bourne
Show Correct Answer
Correct Answer is :
Bash
15. Which one of the following command is used to create a child shell?
A. fork
B. wait
C. sh
D. env
Show Correct Answer
Correct Answer is :
sh
16. Shell variables are of ____ types.
A. 1
B. 3
C. 2
D. 4
Show Correct Answer
Correct Answer is :
2
17. Suppose ABD_DIR is a local variable. Then it will be accessible to the child process.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
18. ____ command is used to display the environment variables only.
A. set
B. env
C. sh
D. var
Show Correct Answer
Correct Answer is :
env
19. ____ command displays all the variables available in the current shell.
A. env
B. set
C. var
D. sh
Show Correct Answer
Correct Answer is :
set
20. Environment variable names can be defined only in uppercase.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
Similar Interview Questions
Search for latest jobs
Find Jobs