102-400

102-400 practice questions, page 2 of 5, with answer review and explanations.

Question 6

SIMULATION - By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)

Question 7

SIMULATION - What word is missing from the following SQL statement? __________ count(*) from tablename; (Please specify the missing word using lower-case letters only.)

Question 8

After issuing: function myfunction { echo $1 $2 ; } in Bash, which output does: myfunction A B C Produce?

  1. A B
  2. A B C
  3. A C
  4. B C
  5. C B A

Question 9

Which of the following commands puts the output of the command date into the shell variable mydate?

  1. mydate="$(date)"
  2. mydate="exec date"
  3. mydate="$((date))"
  4. mydate="date"
  5. mydate="${date}"

Question 10

Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

  1. ~/.bashconf
  2. ~/.bashrc
  3. ~/.bashdefaults
  4. ~/.bash_etc
  5. ~/.bash_profile