IT 244: Introduction to Linux/Unix
Answers to Class 25 Ungraded Quiz

  1. In a case statement, what determines which block of code is executed?
    the value of the variable between case and in
  2. How do you mark the end of a code block in a case statement?
  3. What signals the end of a pattern in a case statement?
  4. What meta-characters can you use in a case statement pattern?
    all of them: ?, * and [  ]
  5. What pattern would you use in a case statement if you wanted to match 11, 12 or 13?
  6. What will you see on the screen if you ran a script that uses the select statement?
    a menu of  numbers followed by values
  7. What happens to the value chosen by the user when responding to a select statement?
    the value is assigned to the select variable
  8. What function does the PS3 keyword shell variable serve in a select statement?
    it contains the text used in the menu prompt
  9. How do you mark the beginning of a here document in a shell script?
    << followed immediately by a string with no spaces between them
  10. How do you mark the end of a here document?
    with the same string that starts the here document on a line by itself