Interview questions

Awk interview questions – page 2

103 questions. Tap “Show answer” to check yourself.

  1. What is the use of string function asorti(string,[d])?

  2. What is the use of string function gensub(r,s,h [,t])?

  3. What is the use of string function tolower(string)?

  4. What is the use of string function toupper(string)?

  5. What is the use of string function match(string,regex)?

  6. What is the use of string function sub(regex,replacement)?

  7. What is the use of string function sub(regex,replacement,string)?

  8. What is the use of string functiong sub(regex,replacement)?

  9. What is the use of string functiong sub(regex,replacement,string)?

  10. What is the use of string function length(string) in AWK?

  11. What is the use of string function split(string,array,separator)in AWK?

  12. What is the use of string function substr(string,position) in AWK?

  13. What is the use of string function substr(string,position,max) in AWK?

  14. What is the use of string function index(string,search) in AWK?

  15. What are Trigonometric Functions in AWK?

  16. How to Truncate Integers in AWK?

  17. How to generate random numbers in AWK?

  18. What is the use of numeric function rand ?

  19. What is the use of numeric function srand ?

  20. What is the use of numeric function sin ?

  21. What is the use of numeric function sqrt ?

  22. What is the use of numeric function atan2?

  23. What is the use of numeric function int ?

  24. What is the use of numeric function log ?

  25. How to exit from an awk script using the exit command?

  26. What are AWK Numerical Functions?

  27. What is the use of numeric function cos ?

  28. What is the use of numeric function exp ?

  29. How do you Explicit File output?

  30. What is the use of sequence a?

Companies that ask Awk questions