Filtering Commands MCQs

By: Prof. Fazal Rehman Shamil

Solved MCQs of Filtering Commands.

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

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

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

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

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

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

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

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

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

To past files, which command is used?

(A).  cut

(B).  paste

(C).  tail

(D).   head

(E). None of these

Multiple Choice Question Answer:  b

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

Space as the default field delimiter, paste command uses.

(A).  True

(B).  False

(E). None of these

Multiple Choice Question Answer:  b

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

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.

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

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

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

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

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

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

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

To paste files, which command is used?

(A).  cut

(B).  paste

(C).  tail

(D).   head

(E). None of these

Multiple Choice Question Answer:  b

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

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

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

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

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

As the default field delimiter paste command uses space.

(A).  True

(B).  False

(E). None of these

Multiple Choice Question Answer:  b

 

 

.

Prof. Fazal Rehman Shamil