Wednesday 28 February 2018

CompTIA LX0-104 Question Answer

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


A. A B
B. A B C
C. A C
D. B C
E. C B A

Answer: A

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


A. mydate="$(date)"
B. mydate="exec date"
C. mydate="$((date))"
D. mydate="date"
E. mydate="${date}"

Answer: A

No comments:

Post a Comment

Note: only a member of this blog may post a comment.