Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which option is used for checking if the file exists or not?
Correct Answer is : -e
2. Which of the following option is used for checking if the file is readable or not?
Correct Answer is : -r
3. Which of the following option is used for checking if the file is writable or not?
Correct Answer is : -w
4. To check if the file exists and is executable we have to use ___ option with test.
Correct Answer is : -x
5. -d option is used for checking if the file exists and is a directory.
Correct Answer is : TRUE
6. ____ option is used for checking whether a particular file is older than a specified file.
Correct Answer is : -ot
7. To check if two files are linked to each other, we can use -ef option.
Correct Answer is : TRUE
8. Which filter apart from perl, is the most powerful?
Correct Answer is : awk
9. Awk filter operates at field level.
Correct Answer is : TRUE
10. Which of the following will be used to print lines containing ‘manager’ in emp.lst?
Correct Answer is : awk ‘/manager/ { print }’ emp.lst
11. The default action if selection_criteria is missing is ____
Correct Answer is : print
12. For pattern-matching, awk uses regular expressions in ____ style.
Correct Answer is : sed
13. awk uses ______ for splitting a line into fields.
Correct Answer is : special parameters
14. Which built-in variable is used by the awk to specify the line numbers?
Correct Answer is : NR
15. What is the default delimiter used by awk?
Correct Answer is : whitespace
16. The printf function uses ___ for string data and ___ for numeric.
Correct Answer is : %s, %d
17. awk doesn’t use $ in evaluation or assignment of variables.
Correct Answer is : TRUE
18. A user-defined variable is initialized to ____
Correct Answer is : zero or null string
19. awk uses ___ operator for concatenating strings.
Correct Answer is : no operator available
20. awk uses __ and __ as comparison operators.
Correct Answer is : ||, &&
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!