Filtering Commands MCQs

1. If we want for specifying our own delimiter, which of the following is used with the paste command.

(A).  -d

(B).  -c

(C).  -a

(D).   -e

(E). None of these

Multiple Choice Question Answer:  a

2. For joining lines, which of the following is used with the paste command?

(A).  -s

(B).  -c

(C).  -a

(D).   -e

(E). None of these

Multiple Choice Question Answer:  a

3. Which of the following command is used for extracting specific columns from a file?

(A).  tail

(B).  head

(C).  pr

(D).   cut

(E). None of these

Multiple Choice Question Answer:  d

4. 1st will cut columns number ___of the expression cut -c -3 emp.

(A).  3

(B).  1

(C).  1-3

(D).   0

(E). None of these

Multiple Choice Question Answer:  c

5. To cut fields, which of the following is used with the cut command.

(A).  -c

(B).  -n

(C).  -f

(D).   -a

(E). None of these

Multiple Choice Question Answer:  c

6. To cut fields, which of the following is the default delimiter used by the cut command?

(A).  space

(B).  tab

(C).  double tab

(D).   underscore

(E). None of these

Multiple Choice Question Answer:  b

7. To extract bytes instead of lines which of the following is used with the tail command?

(A).  -f

(B).  -n

(C).  -c

(D).   -a

(E). None of these

Multiple Choice Question Answer:  c

8. To cut field base on the value of our specified delimiter, which of the following is used with the cut command?

(A).  -a

(B).  -f

(C).  -d

(D).   -e

(E). None of these

Multiple Choice Question Answer:  c

9. For cutting fields or columns while using cut command we have for specifying whether we want.

(A).  True

(B).  False

(E). None of these

Multiple Choice Question Answer:  a

10. To past files, which command is used?

(A).  cut

(B).  paste

(C).  tail

(D).   head

(E). None of these

Multiple Choice Question Answer:  b

11. Using paste command but vertically whatever we have cut using cut command can be pasted back.

(A).  True

(B).  False

(E). None of these

Multiple Choice Question Answer:  a

11. Space as the default field delimiter, paste command uses.

(A).  True

(B).  False

(E). None of these

Multiple Choice Question Answer:  b

12. if we want for specifying our own delimiter, which of the following is used with the paste command.

(A).  -d

(B).  -c

(C).  -a

(D).   -e

(E). None of these

Multiple Choice Question Answer:  a

13. To join lines, which of the following is used with the paste command?

(A).  -s

(B).  -c

(C).  -a

(D).   -e

(E). None of these

Multiple Choice Question Answer:  a1.

14. There is an error in the following command.

$ cut -d “|”  -f  1,4  emp.lst

(A).  True

(B).  False

(E). None of these

Multiple Choice Question Answer:  b

15. Incorrect commands is?

(A).  $ cut -d “|” -f 1,4 emp.lst

(B).  $ cut -c -3 emp.lst

(C).  $ tail -c -511 foo

(D).   $ tail -c 500 foo

(E). None of these

Multiple Choice Question Answer:  d

16. To extract bytes instead of lines, which of the following is used with the tail command?

(A).  -f

(B).  -n

(C).  -c

(D).   -a

(E). None of these

Multiple Choice Question Answer:  c

17. Which of the following command is used for extracting specific columns from a file?

(A).  tail

(B).  head

(C).  pr

(D).   cut

(E). None of these

Multiple Choice Question Answer:  d

18. 1st will cut columns number _____of the expression cut -c -3 emp.

(A).  3

(B).  1

(C).  1-3

(D).   0

(E). None of these

Multiple Choice Question Answer:  c

19. To cut fields Which of the following is used with the cut command.

(A).  -c

(B).  -n

(C).  -f

(D).   -a

(E). None of these

Multiple Choice Question Answer:  c

20. To cut fields which of the following is the default delimiter used by the cut command?

(A).  space

(B).  tab

(C).  double tab

(D).   underscore

(E). None of these

Multiple Choice Question Answer:  b

21. To paste files, which command is used?

(A).  cut

(B).  paste

(C).  tail

(D).   head

(E). None of these

Multiple Choice Question Answer:  b

22. It can be pasted back using paste command but vertically, whatever we have cut using cut command.

(A).  True

(B).  False

(E). None of these

Multiple Choice Question Answer:  a

23. To cut field base on the value of our specified delimiter, which of the following is used with the cut command?

(A).  -a

(B).  -f

(C).  -d

(D).   -e

(E). None of these

Multiple Choice Question Answer:  c

24. For cutting fields or columns while using the cut command, we have to specify whether we want.

(A).  True

(B).  False

(E). None of these

Multiple Choice Question Answer:  a

25.There is an error in the following command

$ cut -d “|”  -f  1,4  emp.lst

(A).  True

(B).  False

(E). None of these

Multiple Choice Question Answer:  b

26. There is an incorrect command in the following command?

(A).  $ cut -d “|” -f 1,4 emp.lst

(B).  $ cut -c -3 emp.lst

(C).  $ tail -c -511 foo

(D).   $ tail -c 500 foo

(E). None of these

Multiple Choice Question Answer:  d

27. As the default field delimiter paste command uses space.

(A).  True

(B).  False

(E). None of these

Multiple Choice Question Answer:  b

 

 

.