Linux Foundation Certified System Administrator (LFCS) — Question 111
What output will the command seq 10 produce?
Answer options
- A. A continuous stream of numbers increasing in increments of 10 until stopped.
- B. The numbers 1 through 10 with one number per line.
- C. The numbers 0 through 9 with one number per line.
- D. The number 10 to standard output.
Correct answer: B
Explanation
The correct answer is B because the command seq 10 generates a sequence of numbers starting from 1 up to 10, displaying each number on a new line. Option A is incorrect as it suggests an infinite stream of numbers, while option C incorrectly starts from 0 and option D only outputs the number 10 without the complete sequence.