102-500 Exam QuestionsBrowse all questions from this exam

102-500 Exam - Question 79


What output does the command seq 1 5 20 produce?

Show Answer
Correct Answer: BE

The command 'seq 1 5 20' generates a sequence starting at 1, incrementing by 5, and stopping before exceeding 20. The output would be the numbers 1, 6, 11, and 16, as these are the numbers produced by adding 5 to the previous number in the sequence, stopping before surpassing 20.

Discussion

8 comments
Sign in to comment
minajahanOption: A
Aug 28, 2020

Correct answer should be: 1 6 11 16

MIUOption: B
Nov 28, 2020

Typo options....the correct options are A. 1 5 10 15 B. 1 6 11 16 C. 1 234 D. 2 345 E. 5 10 15 20 so the answer is B.

claudiodz
Mar 28, 2021

Font: https://vceguide.com/what-output-will-the-command-seq-1-5-20-produce/

iwkno6
Aug 28, 2021

cheers, B indeed.

thienn458Option: A
Aug 19, 2022

output will be 1+5 and it starts from 1 - don't go over 20 1 1+5=6 6+5=11 11+5=16 16+5=21 ( over 20 ) correct : 1 6 11 16

phucpetaOption: A
Apr 14, 2021

seq – seq [OPTION]… FIRST INCREMENT LAST Print numbers from FIRST to LAST, in steps of INCREMENT. output like that 1 6 11 16

sugishoOption: A
Nov 11, 2020

[root@centos7 ~]# seq 1 5 20 1 6 11 16

Stormy_Cloud
Feb 25, 2023

Correct the answers! Not just deleting my comment. Why do we pay you.

Jos015Option: A
Oct 11, 2023

seq Shows a sequence, with 3 parameters: initial: 1 Increment: 5 Final: 20 1 6 11 16

otakool
Jan 15, 2024

A B and C are answer 1?