Shell Components   «Prev  Next»

Shell Programming Concepts - Quiz

Defining Shell Programming Concepts

Each question is worth one point. Select the best answer or answers for each question.
 
1. How is a shell script similar to a word processor macro?
Please select the best answer.
  A. Both require special UNIX add-ons
  B. Both imitate commands you would enter manually
  C. Both use external and built-in commands
  D. Both use proprietary scripting languages

2. Which statements describe external commands?
Please select all the correct answers.
  A. They are not part of the shell itself.
  B. They are unlikely to vary depending on which shell you are using.
  C. They are identical to built-in commands when using macros.
  D. They require less memory than built-in commands.

3. How do shell scripts receive input?
Please select all the correct answers.
  A. By reading keyboard data entered by a user
  B. By using the output of another program as input
  C. By using a file’s contents as input
  D. By reading data from the network

4. Which methods do shell scripts use to process output?
Please select all the correct answers.
  A. Writing data to a file.
  B. Sending information to the screen.
  C. Sending information over a network connection.
  D. Redirecting the output of an external command.