Module checkpoint

Python log parsing and reports 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 5Why are Python regular expressions usually written as raw strings such as r'\d+'?
Question 2 of 5What is the difference between `pattern.match(line)` and `pattern.search(line)`?
Question 3 of 5Why are numbers and hex values replaced before counting failure signatures?
Question 4 of 5Which call converts a dataclass instance to a dictionary suitable for json.dump?
Question 5 of 5Why should a CSV file be opened with newline='' when using the csv module?

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