Exam 5: Creating Shell Scripts and Displaying File Contents

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Which variable assignment method would you use to specify a variable's value in a script command?

Free
(Multiple Choice)
4.9/5
(42)
Correct Answer:
Verified

B

Match each statement with an item -Starts the condition being tested.

Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
Verified

A

____ consists of binary ones and zeros.

Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
Verified

D

After creating a shell script and assigning execute permissions, how do you define its stored location and why must you do this?

(Essay)
5.0/5
(33)

Match each statement with an item -Indicates the beginning of the code to be repeated.

(Multiple Choice)
4.9/5
(44)

Why should you give only read and write permission to a file that is not a program?

(Essay)
4.8/5
(38)

With a(n) ____________________ program, the source code is converted to machine code, line by line, as the user runs the script.

(Short Answer)
5.0/5
(34)

Which command removes write and execute permissions for the other category on file4?

(Multiple Choice)
5.0/5
(37)

A(n) ____________________ is a set of rules for instructing a computer how to perform specific tasks.

(Short Answer)
4.8/5
(40)

Describe a for loop.

(Essay)
4.8/5
(39)

Match each statement with an item -Starts the portion of code specifying what to do if the condition evaluates to true.

(Multiple Choice)
4.8/5
(33)

How do you combine the else and if statements? Why is this advantageous?

(Essay)
4.8/5
(38)

Which command displays a file's contents one screen at a time?

(Multiple Choice)
4.9/5
(44)

The cat command is usually used to display the contents of a ____.

(Multiple Choice)
4.7/5
(32)

Match each statement with an item -A loop statement that causes the interpreter to continue executing the code in the until loop portion of the script as long as the condition is false.

(Multiple Choice)
4.8/5
(43)

Which command will display the exit status code on the screen?

(Multiple Choice)
4.9/5
(52)

When you quit a program or a command, a numeric code called a(n) ____________________ is sent to the shell.

(Short Answer)
5.0/5
(30)

What is the result of running the head -15 scr8 command?

(Multiple Choice)
4.8/5
(27)

____________________ is used to perform a set of commands repeatedly.

(Short Answer)
4.9/5
(30)

You can use condition statements to create menu scripts that allow users to choose from a list of options.

(True/False)
4.8/5
(47)
Showing 1 - 20 of 48
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)