Multiple choice technology programming languages

.{3,5}pentane

  1. will match "cyclopentane"

  2. will match "tri-pentane"

  3. will match "n-pentane"

  4. will match "neopentane"

Reveal answer Fill a bubble to check yourself
A,B,D Correct answer
Explanation

The regular expression .{3,5}pentane matches any string containing between 3 and 5 characters followed by "pentane". "cyclopentane" has 5 preceding characters, "tri-pentane" has 4, and "neopentane" has 3, so all three match.