Question 4834 – Operating-Systems
November 17, 2023
Question 5070 – Operating-Systems
November 17, 2023
Question 4834 – Operating-Systems
November 17, 2023
Question 5070 – Operating-Systems
November 17, 2023

Question 4999 – Operating-Systems

Which of the following commands will output “onetwothree” ?

Correct Answer: C

Question 620 Explanation: 
for→ It will execute a statement will work like normal ‘C’ programming.

echo→ This statement will print the value
$n → Printing the value of ‘n’ variable.
; → Terminating the current statement.
According to question, Option-C is most suitable answer.
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}
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!