1. Your organization routinely uses scripts, but as some employees have left, there are scripts that contain only command lines and no one is certain of their purpose.What steps can be taken to ensure a way for others to know the purpose of a script?
a. Create text documentation of scripts and use the scriptdoc command to organize and display the documentation.
b. Use the whatis command to create and save new documentation for scripts.
c. Requirethatscriptwritersplacecommentlinesinsidethescriptsusingthe#symbol
to begin each comment line.
d. Require that scripts be named using the descriptive sentence naming function in UNIX/Linux.
2. Which of the following shells enables the use of scripts? (Choose all that apply.)
a. Bash
b. csh
c. sea
d. zsh
3. You frequently use the command ls -a and want to save time by just entering l to do the same thing.Which of the following commands enables you to set your system to view hidden files by only entering l?
a. put l= ls -a
b. setltols-a
c. set"ls-a"to"l"
d. alias l=" ls -a"
4. You have written a script, but when you run it there is an error.Which of the fol- lowing commands can you use to debug your script? (Choose all that apply.)
a. debug -all
b. sh -v
c. ./ -d
d. sh -x
5. You have written a shell program that creates four temporary files.Which of the fol- lowing commands can you use to remove these files when the script has completed its work?
a. trap
b. grep
c. del
d. clear
6. Which of the following commands works well for menus used in a script? (Choose all that apply.)
a. do
b. case
c. choose
d. Comm
7. You are currently in the source directory, which is the new directory you have just created for storing and running your scripts.You want to make certain that the source directory is in your default path.Which of the following commands enables you to view the current default path settings?
a. cat PATH
b. show path
c. sed PATH!
d. echo $PATH
8. You have created a script for use by your entire department in a commonly accessed directory. Only you are able to run the script, which works perfectly.Which of the following is likely to be the problem?
a. You did not link the script.
b. You did not give all users in your department execute permission for that script.
c. You did not designate to share ownership of the script.
d. There are two kinds of scripts, universal and private.You have created a private script and need to convert it to universal
9. Your current working directory contains a series of files that start with the word “account” combined with a, b, c, d, and e, such as accounta, accountb, and so on. Which of the following commands enables you to view the contents of all of these files? (Choose all that apply.)
a. ls account "a -e"
b. less account "a,e"
c. more account[ a,b,c,d,e ]
d. cat account{a to e}
10. For which of the following logic structures used within a script is fi the final line for that logic structure? (Choose all that apply.)
a. loop
b. case
c. for
d. If
11. Which of the following are examples of arithmetic or relational operators? (Choose all that apply.)
a. !
b. <
c. %
d. *
12. You have created a series of scripts that use the same environment variables. How- ever, when you run these scripts, some of them do not seem to recognize the envi- ronment variables you have set.What is the problem?
a. You need to use the export command so these variables have global use.
b. You are creating too many environment variables, because the maximum number is five.
c. You must use the home command to make these variables native to your home directory.
d. Only the system administrator can create environment variables and you should contact her to create the ones you need to use.
13. You have spent the last two hours creating a report in a file and afterwards you use cat to create a new file. Unfortunately the new file name you used was the same as the name you used for the report, and now your report is gone.What should you do next time to prevent this from happening?
a. Enter the cat -s command before you start.
b. Enter the command, set -o noclobber before you start.
c. Always use the cat -m command when you use cat to create a file, because this command checks to see if the file already exists.
d. After you created the report file you should have used the chmod a-o command to prevent the file from being deleted or overwritten.
14. You have remotely logged into a computer running UNIX or Linux, but you are not certain about which operating system you are using. However, when you display the contents of the variable it shows which operating system you are using.
a. OP
b. OPTIND
c. OID
d. OSTYPE
15. What command can you use to view the environment and configuration variables already configured on your system?
a. var
b. envar
c. printenv
d. let -all
16. Which of the following are valid expressions? (Choose all that apply.)
a. let x=5*9
b. let x=y+10
c. let m=12/4
d. let r=128-80
17. When you type for wood maple spruce oak pine at the command line and then press Enter, what should you type next at the > prompt?
a. do
b. go
c. fi
d. Term
18. You want to store a long listing of your files in a variable called myfiles.Which of the following commands enables you to do this?
a. let ls -l=myfiles
b. echo ls -l > myfiles
c. myfiles=‘ls -l‘
d. let ls -l > myfiles
19. What error is in the following script code?
case “selection” in “ i ”) ./listscript ;; “ ii ”) ./numberscript ;; “ iii ”) ./findscript ;; esac
a. All references to ;; should be replaced with a back quote.
b. There should be a dollar sign in front of selection, as in “$selection”
c. There should be no double quote marks in the code.
d. The code must end with the statement,“out”.
20. You are working with a colleague on a script called value that updates several files. You want to test the script, but not update the files.Which of the following com- mands can you use?
a. test -noupdate value
b. trap -u value
c. set -u value
d. sh -n value
21. You only have to enter the name of a script to have it run, such as entering myscript. What setting enables you to do this?
a. You have set the SCRIPT environment variable to 1 instead of the default 0.
b. Right after you logged in you entered setup scripts.
c. Thefirstlineinyourscriptsisalwaysrun,whichenablesscriptstoberuninthisway.
d. You have placed the directory from which you run the scripts in your PATH variable.
22. What would you expect to find in the HOME environment variable?
23. What is the difference between a compiler and an interpreter?
24. What command would you use to place the cursor in row 10 and column 15 on the screen or in a terminal window?
25. What is the purpose of a login script?
In: Computer Science
Officially, the UK is due to leave the EU on 31 October 2019. How the UK and the world could cope with it in business?
In: Economics
essay on Three keys to getting an overseas assignment right, Harvard Business Review, October 2009, 115-119
In: Operations Management
Big Co. owns 60% of Little Co common stock. On 1/1/23 Big Co sold a patent to Little Co for $32,000. The patent had a book value of $20,000 on that date, with a 4 year remaining useful life.
On 5/1/26 Little sells the patent to a third party for $20,000.
Little Co reports earnings of $50,000 each year.
Big uses the FULL equity method to account for their investment in Little.
Flag this Question
Question 11 pts
How much was the unrealized gain or loss on the sale? ("xx,xxx gain" or "xx,xxx loss")
Flag this Question
Question 21 pts
How much unrealized gain or loss is carried forward to 2024? (xx,xxx)
Flag this Question
Question 31 pts
What is the "income to the NC Interest" in 2023? ("trick" question, sort of. Remember, was this an upstream sale or a downstream sale?)
Flag this Question
Question 41 pts
In 2026 the patent is sold to some third party. In the elimination entries related to this intercompany sale, what account [ Select ] ["Gain on sale", "Retained earnings", "Non-controlling interest", "Investment in Little", "Investment income"] would be credited, for what amount [ Select ] ["4,000", "1,000", "3,000", "2,000"] .
In: Accounting
Prepare an income statement, a statement of changes in equity, and a statement of financial position for Norman Rae Ltd., a service business, from the items listed below for the month of October, 2018:
...... Accounts payable............................................................................. $10,000
...... Accounts receivable......................................................................... 14,000
...... Cash................................................................................................. 10,000
...... Common shares............................................................................... 28,000
...... Dividends paid.................................................................................. 6,000
...... Income tax expense......................................................................... 4,500
...... Equipment........................................................................................ 30,000
...... Supplies............................................................................................ 2,800er.
...... Supplies expense............................................................................. 3,500
...... Rent expense................................................................................... 3,000
...... Retained earnings, October 1.......................................................... 15,000
...... Salaries expense.............................................................................. 7,000
...... Service revenue............................................................................... 28,500
...... Utilities expense............................................................................... 700
In: Accounting
You are assisting an attorney in the closing of a loan made by a federally insured savings and loan association to facilitate the purchase of a home. The loan is closing on October 15. The first payment under the loan will be due on December 1. The real estate taxes on the home for the current year were due and payable on September 1, and they have been paid in the amount of $1,800. If the lender requests that you escrow taxes under its loan, how much money do you need to collect for the escrow at the closing on October 15?
In: Finance
Transferred-in costs, FIFO method (continuation of 17-33). Refer to the information in Problem 17-33. Suppose that Larsen Company uses the FIFO method instead of the weighted-average method in all of its departments. The only changes to Problem 17-33 under the FIFO method are that total transferred-in costs of beginning work in process on October 1 are $2,881,875 (instead of $2,932,500) and that total transferred-in costs added during October are $7,735,250 (instead of $7,717,500). Using the FIFO process-costing method, do Problem 17-33.
In: Statistics and Probability
Peerless Corporation (a U.S. company) made a sale to a foreign customer on September 15, for 124,000 crowns. It received payment on October 15. The following exchange rates for 1 crown apply:
| September 15 | $ | 0.60 | |
| September 30 | 0.66 | ||
| October 15 | 0.61 | ||
Prepare all (4) journal entries for Peerless in connection with this sale, assuming that the company closes its books on September 30 to prepare interim financial statements. (If no entry is required for a transaction/event, select " No journal entry required" in the first account field.)
In: Accounting
Copper Corporation has the following sales budget for the last six months of 2016:
| July | $200,000 | October | $180,000 |
| August | 160,000 | November | 200,000 |
| September | 220,000 | December | 188,000 |
Historically, the cash collection of sales has been as follows:
65 percent of sales collected in month of sale,
25 percent of sales collected in month following sale,
8 percent of sales collected in second month following sale, and
2 percent of sales is uncollectable.
Cash collections for October are
$117,000.
$174,000.
$184,800.
$199,000.
$176,400.
In: Accounting
The periodic inventory records of Flexon Prosthetics indicate the following at October 31:
| Oct.1 | Beginning inventory | 9 units @ $60 |
| 8 | Purchase | 4 units @ 60 |
| 15 | Purchase | 10 units @ 70 |
| 26 | Purchase | 3 units @ 80 |
At October 31 Flexon counts 8 units of inventory on hand.
Requirements:
Compute ending inventory and cost of goods sold, using each of the following methods:
1. Average cost (round average unit cost to the nearest cent)
3. FIFO
4. LIFO
In: Accounting