1. What is true regarding the statement beginning with #! that is found in the first line of a script?
A) A. It prevents the script from being executed until the ! is removed. B) B. It specifies the path and the arguments of the interpreter used to run the script. C) C. It is a comment that is ignored by the script. D) D. It specifies the character encoding of the script.
2. Which Bash option prevents a user from accidentally overwriting a file with a '>'?
A) A. set -o safe B) B. set -o noglob C) C. set -o noclobber D) D. set -o append E) E. set -o nooverwrite
3. Which of the following commands prints the exit value of the most recently executed program in Bash?
A) A. echo $? B) B. echo $# C) C. echo $exit D) D. echo $status E) E. echo $&
4. Which of the following SQL statements will select the fields name and address from the contacts table?
A) A. SELECT (name, address) FROM contacts; B) B. SELECT (name address) FROM contacts; C) C. SELECT name, address FROM contacts; D) D. SELECT name address FROM contacts;
5. Which of the following configuration files should be modified to globally set shell variables for all users?
A) A. /etc/bashrc B) B. /etc/profile C) C. ~/.bash_profile D) D. /etc/.bashrc
Leave a comment