CSE271: Short Quiz #5 -- Profiling, Shell Scripting and Regular Expressions

  1. What is special about the very first line of most shell scripts? (2 points)

  2. Name one static code checking package. (2 points)

  3. Give one good characteristic of system call tracers that traditional debuggers like gdb do not have? (2 points)

  4. Given a set of strings that end in .html or .htm, what would
    • (2 points) the pattern to match just those ending in .htm as filenames using globbing
    • (2 points) the regular expression to match those ending in .htm (as strings, one per line)


Last revised: 28 February 2013, Brian D. Davison.