JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 23
Unix interview questions part 23
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which of the following operator is used with find command for performing the negate function?
A. -a
B. -o
C. &&
D. !
Show Correct Answer
Correct Answer is :
!
2. Which operator is used to specify the AND condition in find command?
A. !
B. &&
C. -A
D. -a
Show Correct Answer
Correct Answer is :
-a
3. -o operator represents the OR condition.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
4. Which of the following option is used with find command for taking action on selected files?
A. -exec
B. -atime
C. -mtime
D. -a
Show Correct Answer
Correct Answer is :
-exec
5. -ok option is used with find command for seeking information before taking the action specified.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
6. Which of the following operators are used for logical execution?
A. ||
B. &&
C. %%
D. && and ||
Show Correct Answer
Correct Answer is :
&& and ||
7. When we use &&, the second command is executed only when first succeeds.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
8. When we use ||, both the commands are executed.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
9. The syntax for using && is ______________
A. cmd1 && cmd2
B. cmd1 cmd2 &&
C. cmd1 & cmd2&
D. cmd1
Show Correct Answer
Correct Answer is :
cmd1 && cmd2
10. To perform decision depending on the fulfillment of certain criteria, ____ is used.
A. if
B. else
C. for
D. if and else
Show Correct Answer
Correct Answer is :
if and else
11. Every if is closed with a corresponding ____
A. else
B. fi
C. if
D. else if
Show Correct Answer
Correct Answer is :
fi
12. To check more than two conditions, ___ is used with if-else statements.
A. while
B. for
C. elif
D. for
Show Correct Answer
Correct Answer is :
elif
13. The name of the script is stored in which special parameter?
A. 1
B. 0
C. $#
D. $*
Show Correct Answer
Correct Answer is :
0
14. Which of the following is not a special parameter used by the shell?
A. $$
B. $*
C. $?
D. $-
Show Correct Answer
Correct Answer is :
$-
15. To know the exit status of a command, we can use ____
A. $$
B. $*
C. $?
D. $-
Show Correct Answer
Correct Answer is :
$?
16. For navigation purposes, the mode should be _____ mode.
A. command
B. input
C. insert
D. ex
Show Correct Answer
Correct Answer is :
command
17. Which of the following keys are used to moving the cursor up and down?
A. k
B. h
C. l
D. k and j
Show Correct Answer
Correct Answer is :
k and j
18. Which of the following keys is used to moving cursor leftwards along a line?
A. k
B. h
C. l
D. j
Show Correct Answer
Correct Answer is :
h
19. Which one of the following keys are used to moving cursor rightwards along a line?
A. k
B. h
C. l
D. j
Show Correct Answer
Correct Answer is :
l
20. We can prefix the repeat factor with navigation keys (h, j, k and l).
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
Similar Interview Questions
Search for latest jobs
Find Jobs