Module checkpoint

Text processing and log checking knowledge check

Answer every question from your current understanding. After submission, compare your reasoning with the explanation and revisit any weak concept.

5 QuestionsOne Answer eachImmediate ScoreDetailed Explanations
Read→Reason→Select→Review
Question 1 of 5Which extended regular expression matches `TEST PASSED` or `TEST FAILED` at the end of a line?
Question 2 of 5Which grep option is best inside an `if` that only needs to know whether a match exists?
Question 3 of 5Why is a log with no `TEST PASSED` line counted as a failure even without ERROR lines?
Question 4 of 5What does `awk '/^RESULT/ { n[$3]++ } END { for (k in n) print k, n[k] }'` print for lines like `RESULT fifo_basic PASS`?
Question 5 of 5Why should warning waivers be narrow regular expressions rather than a word such as `Warning`?

Review every selection before submitting. You can retry after reading the explanations.