102-500 Real Exam Dumps Questions and answers 1-10

Get Full Version of the Exam
http://www.EnsurePass.com/102-500.html

Question No.1

Which command allows you to make a shell variable visible to subshells?

  1. export $VARIABLE

  2. export VARIABLE

  3. set $VARIABLE

  4. set VARIABLE

  5. env VARIABLE

Correct Answer: B

Question No.2

What output will the command seq 10 produce?

  1. A continuous stream of numbers increasing in increments of 10 until stopped.

  2. The numbers 1 through 10 with one number per line.

  3. The numbers 0 through 9 with one number per line.

  4. The number 10 to standard output.

Correct Answer: B

Question No.3

Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)

  1. The user issuing the command must be in the group script.

  2. The script file must be found in the $PATH.

  3. The script file must have the executable permission bit set.

  4. The script must begin with a shebang-line (#!) that points to the correct interpreter.

  5. The file system on which the script resides must be mounted with the option scripts.

Correct Answer: BCD

Question No.4

Which of the following commands lists all defined variables and functions within Bash?

  1. env

  2. set

  3. env -a

  4. echo $ENV

Correct Answer: B

Question No.5

Which command makes the shell variable named VARIABLE visible to subshells?

  1. export $VARIABLE

  2. export VARIABLE

  3. set $VARIABLE

  4. set VARIABLE

  5. env VARIABLE

Correct Answer: B

Question No.6

What output will the following command sequence produce? echo #39;1 2 3 4 5 6#39; | while read a b c; do

echo result: $c $b $a; done

  1. result: 3 4 5 6 2 1

  2. result: 1 2 3 4 5 6

  3. result: 6 5 4

  4. result: 6 5 4 3 2 1

  5. result: 3 2 1

Correct Answer: A

Question No.7

Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?

  1. CASE

  2. FROM

  3. WHERE

  4. IF

Correct Answer: C

Question No.8

Which of the following is the best way to list all defined shell variables?

  1. env

  2. set

  3. env -a

  4. echo $ENV

Correct Answer: B

Question No.9

Which directory in /etc is used to keep a sample copy of files and directories for when a new user has a home directory created? (Please provide the full path)

Correct Answer: /etc/skel, /etc/skel/

Question No.10

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

Correct Answer: A

Get Full Version of 102-500 Dumps

Tagged

Leave a Reply

Your email address will not be published. Required fields are marked *