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?
-
export $VARIABLE
-
export VARIABLE
-
set $VARIABLE
-
set VARIABLE
-
env VARIABLE
Correct Answer: B
Question No.2
What output will the command seq 10 produce?
-
A continuous stream of numbers increasing in increments of 10 until stopped.
-
The numbers 1 through 10 with one number per line.
-
The numbers 0 through 9 with one number per line.
-
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.)
-
The user issuing the command must be in the group script.
-
The script file must be found in the $PATH.
-
The script file must have the executable permission bit set.
-
The script must begin with a shebang-line (#!) that points to the correct interpreter.
-
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?
-
env
-
set
-
env -a
-
echo $ENV
Correct Answer: B
Question No.5
Which command makes the shell variable named VARIABLE visible to subshells?
-
export $VARIABLE
-
export VARIABLE
-
set $VARIABLE
-
set VARIABLE
-
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
-
result: 3 4 5 6 2 1
-
result: 1 2 3 4 5 6
-
result: 6 5 4
-
result: 6 5 4 3 2 1
-
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?
-
CASE
-
FROM
-
WHERE
-
IF
Correct Answer: C
Question No.8
Which of the following is the best way to list all defined shell variables?
-
env
-
set
-
env -a
-
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?
-
A B
-
A B C
-
A C
-
B C
-
C B A
Correct Answer: A
Get Full Version of 102-500 Dumps