CAS-005 · Question #235
CAS-005 Question #235: Real Exam Question with Answer & Explanation
The correct answer is C: Reader( )[1][0].[0-3]:. This regex is valid and matches "Reader 10.0", "Reader 10.1", "Reader 10.2", and "Reader 10.3" while excluding "Reader 10.4". Reader: Matches the text "Reader". [1][0]: Matches "10" as a combination of two characters. \.: Matches the literal period. [0-3]: Matches any single digi
Question
Embedded malware has been discovered in a popular PDF reader application and is currently being exploited in the wild. Because the supply chain was compromised, this malware is present in versions 10.0 through 10.3 of the software's official versions. The malware is not present in version 10.4. Since the details around this malware are still emerging, the Chief Information Security Officer has asked the senior security analyst to collaborate with the IT asset inventory manager to find instances of the installed software in order to begin response activities. The asset inventory manager has asked an analyst to provide a regular expression that will identify the affected versions. The software installation entries are formatted as follows: Reader 10.0 Reader 10.1 Reader 10.2 Reader 10.3 Reader 10.4 Which of the following regular expression entries will accurately identify all the affected versions?
Options
- AReader(*)[1][0].[0-4]:
- BReader[11[01X.f0-3'
- CReader( )[1][0].[0-3]:
- DReader( )[1][0] X.[1-3]:
Explanation
This regex is valid and matches "Reader 10.0", "Reader 10.1", "Reader 10.2", and "Reader 10.3" while excluding "Reader 10.4". Reader: Matches the text "Reader". [1][0]: Matches "10" as a combination of two characters. .: Matches the literal period. [0-3]: Matches any single digit between 0 and 3.
Community Discussion
No community discussion yet for this question.