Unix Interview Questions - 45 | Snaprecruit.com
Unix Interview Questions - 45 | Snaprecruit.com
JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing
Enterprises
Unix interview questions part 45
Unix interview questions part 45
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. awk allows the user to use variables of his own choice.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
2. Which option is used for reading an awk program from a file?
A. -e
B. -f
C. -i
D. -F
Show Correct Answer
Correct Answer is :
-f
3. ____ section can be used if we’ve to print something before processing the first line.
A. end
B. begin
C. start
D. first
Show Correct Answer
Correct Answer is :
begin
4. ____ section can be used if we’ve to print something after processing the last line.
A. end
B. begin
C. start
D. first
Show Correct Answer
Correct Answer is :
begin
5. awk uses ____ for providing comments.
A. %%
B. //
C. #
D. $$
Show Correct Answer
Correct Answer is :
#
6. Which of the following is a built-in variable for awk?
A. ps
B. 0
C. FS
D. FN
Show Correct Answer
Correct Answer is :
FS
7. FS defines the field separator.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
8. Which built variable is used for defining the field delimiter in the output?
A. OFS
B. FS
C. NF
D. ES
Show Correct Answer
Correct Answer is :
OFS
9. The ____ variable stores the name of the file currently being processed.
A. OFS
B. FILENAME
C. NF
D. ES
Show Correct Answer
Correct Answer is :
FILENAME
10. Which of the following is not a built-in variable used by awk?
A. ES
B. FILENAME
C. argv
D. argc
Show Correct Answer
Correct Answer is :
ES
11. awk supports the use of arrays.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
12. Which of the following is not true about awk arrays?
A. they are not expanded automatically
B. they are initialized to zero or an empty string
C. index can be a string also
D. they are not formally defined
Show Correct Answer
Correct Answer is :
they are not expanded automatically
13. Which of the following is an associative array?
A. a[ ]
B. arr[ ]
C. envr [ ]
D. ENVIRON[ ]
Show Correct Answer
Correct Answer is :
ENVIRON[ ]
14. ____ function breaks up a string on the basis of delimiter.
A. length
B. substr
C. system
D. split
Show Correct Answer
Correct Answer is :
split
15. For running a UNIX command within awk, we’ve to use ____ function.
A. length
B. substr
C. system
D. split
Show Correct Answer
Correct Answer is :
system
16. sqroot(x) function returns the square root of x.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
17. Which of the following is supported by awk?
A. if
B. while
C. for
D. if, while, for
Show Correct Answer
Correct Answer is :
if, while, for
18. print statement is necessary for printing a line.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
19. awk uses _____ dimensional arrays.
A. one
B. two
C. multi
D. three
Show Correct Answer
Correct Answer is :
one
20. awk has some built-in functions which are used for arithmetic and string operations.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
Similar Interview Questions
Search for latest jobs
Find Jobs