DistributedNetworks DistributedNetworks


Unix Shell Scripts   «Prev  Next»

Defining Script File - Quiz

Each question is worth one point. Select the best answer or answers for each question.
 
1. What information must be included in the first line of a shell script?
Please select the best answers.
  A. The interpreter program that should be used to execute the script
  B. The email address of the script’s author
  C. The interpreter program that should be used to execute the script
  D. A summary of the commands used in the script Correct

2. For what purpose are shell script commands entered at a command line instead of in a script?
Please select all the correct answers.
  A. To complete any task that you prefer to do at a command line
  B. To test a command before including it in a script
  C. To automatically save results to a temporary file
  D. To allow you to interact with the command in real time

3. Which of the following applies to the file extension on a shell script file?
Please select all the correct answers.
  A. The shell script file extension must match the shell name or the script cannot be executed.
  B. The file extension can refer to the shell to help indicate the purpose of the file.
  C. Using a filename that is descriptive of the shell script purpose is more important than the file extension.
  D. The file extension is not used at all in interpreting or executing the shell script.