For this question, a string matches a regex only if the enti…

For this question, a string matches a regex only if the entire string is described by the pattern, rather than a substring matching. We’re interested in finding equivalent regular expressions to this one, called R:  ca+[​rt​]s? Using these six test strings car cas cars cats crs carss For each candidate regular expression below, select one of the test strings where the candidate disagrees with our base expression R. This would mean that either R matches and the candidate doesn’t or R doesn’t match while the candidate does. If the two regular expressions agree on all the test strings, select “equivalent”. caa*[​rt​]s? [partA] ca+[​rt​]s* [partB] ca+(r|t)s? [partC] ca+[​rt​]?s? [partD] ca+rs? [partE] ca*[​rt​]s? [partF]

Suppose the file list.txt is in the current directory and ha…

Suppose the file list.txt is in the current directory and has the following contents: user@vm$ cat list.txtCherryAppleDurianBanana What will be displayed to the terminal when the following command is run: cat list.txt | head -n 3 | sort If a line is blank, select “(nothing)” [blank1] [blank2] [blank3] [blank4]