Question types

Start with

Question limit

of 29 available terms

Print test

29 Multiple choice questions

  1. True
  2. True
    If you don't think so, your regular expressions are not sufficiently robust.
  3. True
  4. /bar/
  5. True
  6. True
  7. False

    s/foo/bar/g will replace ALL instances of foo in the search string with bar because of the "g" (global) modifier.
  8. A syntax for searching and replacing strings in Perl. Regular expressions are a means of searching strings of text, a prominent feature of Perl.
  9. True A class is a type of character, such as alphabetic (a-z, A-Z), numeric (0-9) and white space (tab, space and newline)
  10. True
  11. "Mouse, Mickey"
    the expression s/^(.)\s+(.)$/$2, $1/; groups two words separated by whitespace and reverses those words with a comma and space between them.
  12. False

    Comments begin with a # (hash mark)
  13. False
    ^bar means find the string "bar" at the beginning of the string being searched.
  14. three or more of the preceding object
  15. True
  16. True

    (foo|bar|baz) will match any of the words foo, bar or baz.
  17. an empty line
  18. True
  19. Cowan, Teddy
  20. False
  21. True
  22. a single space
    multiple whitespace characters
    This instance of split uses /\s+/ as the delimiter, which is interpreted to mean one or more whitespace characters.
  23. True
  24. True
  25. $words[3]
  26. False
    Regular expressions will match as much of the strings as possible.
  27. True
  28. True
  29. True