1. Which option is used for checking if the file exists or not?
2. Which of the following option is used for checking if the file is readable or not?
3. Which of the following option is used for checking if the file is writable or not?
4. To check if the file exists and is executable we have to use ___ option with test.
5. -d option is used for checking if the file exists and is a directory.
6. ____ option is used for checking whether a particular file is older than a specified file.
7. To check if two files are linked to each other, we can use -ef option.
8. Which filter apart from perl, is the most powerful?
9. Awk filter operates at field level.
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.
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?
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.
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 : ||, &&