exam questions

Exam 102-400 All Questions

View all questions & answers for the 102-400 exam

Exam 102-400 topic 1 question 14 discussion

Actual exam question from LPI's 102-400
Question #: 14
Topic #: 1
[All 102-400 Questions]

What output will the following command produce?
seq 1 5 20

  • A. 1
  • B. 1
  • C. 1
  • D. 2
  • E. 5
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mallorysmith64
2 years, 8 months ago
When running the command seq 1 5 20 in bash, the result is 1 6 11 16 all on different lines. Try this problem in bash to get the correct result. There is a problem with this question.
upvoted 2 times
mallorysmith64
2 years, 8 months ago
The reason why is because it's incrementing by 5 each time until it's told to stop. starts with 1 1+5 = 6 6 + 5 = 11 11 + 5 = 16 If you add 5 again that's 21 and the sequence only should go to 20, so we stop here.
upvoted 2 times
...
...
dontone_covidone
4 years, 2 months ago
manco i programmatori de ACTIVISION
upvoted 4 times
...
3glag
4 years, 11 months ago
1 6 11 16
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago