Which of the following can be included in a shell script to ask the user to type in a password and then store it in the variable named $password?
A. read -s -p “Please enter the password: “ password
B. read -p “Please enter the password: “ $password
C. read -p -s “Please enter the password: “ password
D. read -s -p “Please enter the password: “ $password
Answer: A
You might also like to view...
You can perform all of the following actions with variables except:
a. Copy and store values entered by the user, so they may be manipulated b. Assign a variable's value to a constant c. Perform arithmetic on values d. Remember information for later use in the program
In the past, most of the work was spent on designing, coding, and testing programs, while little work is spent on maintenance; today, most of the work on a program is spent on maintenance. The main reason for this trend is because.
A. people don’t spend as much time designing as they used to B. customers complain more often today than in the past C. programmers are intentionally making programs buggier, so they can spend more time maintaining them – it’s job security D. in the past, programs were small and could easily be rewritten; now, programs are humongous, and it is more cost-effective to maintain them
What is not true about ROM (Read Only Memory)?
A) It only plays a small role in the startup process. B) It is not volatile. C) It plays a very important part in the startup process. D) It can usually only be read from, not written to.
An important reconciliation in the payroll system is
A. general ledger compares the labor distribution summary from cost accounting to the disbursement voucher from accounts payable B. personnel compares the number of employees authorized to receive a paycheck to the number of paychecks prepared C. production compares the number of hours reported on job tickets to the number of hours reported on time cards D. payroll compares the labor distribution summary to the hours reported on time cards