Discussion
The output generated by the LINUX command : $ seq 1 2 10 will be
Answer: C
The command prints 1 3 5 7 9.
seq FIRST INCREMENT LAST prints numbers from the first, adding the increment until the last is passed. Here it starts at 1, steps by 2 and stops at 9, which is under 10.
The other options ignore the increment of 2 or print a different set. The general form is seq first increment last, and with only two arguments the increment defaults to 1. With three arguments, as here, the middle one is the step, so the sequence is 1, 3, 5, 7, 9 and the next value, 11, would exceed the last value of 10.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development