Tuesday, 16 June 2015

Q35,Paper 2,J14. Which of the following commands will output “onetwothree” ?



(A) for val; do echo-n $val; done <one two three
(B) for one two three; do echo-n-;done
(C) for n in one two three; do echo-n $n; done
(D) for n in one two three {echo –n $ n}

Answer c

No comments:

Post a Comment

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