Topic 1, Shells, Scripting and Data Management
Which of the following is the best way to list all defined shell variables?
C. env -a
D. echo $ENV
What output wil the command seq 10 produce?
A. A continuous stream of numbers increasing in increments of 10 until stopped.
B. The numbers 1 through 10 with one number per line.
C. The numbers 0 through 9 with one number per line.
D. The number 10 to standard output.
Which command makes the shell variable named VARIABLE visible to subshells?
A. export $VARIABLE
B. export VARIABLE
C. set $VARIABLE
D. set VARIABLE
E. env VARIABLE
Which of the following SQL statements will select the fields name and address from the contacts table?
A. SELECT (name, address) FROM contacts;
B. SELECT (name address) FROM contacts;
C. SELECT name, address FROM contacts;
D. SELECT name address FROM contacts;
When the command echo $ outputs 1, which of the following statements is true?
A. It is the process ID of the echo command.
B. It is the process ID of the current shel .
C. It is the exit value of the command executed immediately before echo.
D. It is the exit value of the echo command.
What benefit does an alias in bash provide?