

MCQOPTIONS
Saved Bookmarks
This section includes 19 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
1. |
The name of the input and output files cannot be same while using sort command. |
A. | True |
B. | False |
Answer» C. | |
2. |
Which option is used by the sort command to redirect the output to a specified file? |
A. | -n |
B. | -t |
C. | -o |
D. | -u |
Answer» D. -u | |
3. |
_____ option is used with sort command for removing repeated lines. |
A. | -n |
B. | -u |
C. | -t |
D. | -a |
Answer» C. -t | |
4. |
Which option is used when we’ve to sort files containing only numbers? |
A. | -n |
B. | -a |
C. | -d |
D. | -u |
Answer» B. -a | |
5. |
We cannot perform sorting on columns using sort command. |
A. | True |
B. | False |
Answer» C. | |
6. |
______OPTION_IS_USED_WITH_SORT_COMMAND_FOR_REMOVING_REPEATED_LINES.?$ |
A. | -n |
B. | -u |
C. | -t |
D. | -a |
Answer» C. -t | |
7. |
WHICH_OPTION_IS_USED_WHEN_WE‚ÄÖ√Ñ√∂‚ÀÖ√Ë‚ÀÖ¬•VE_TO_SORT_FILES_CONTAINING_ONLY_NUMBERS??$# |
A. | -n |
B. | -a |
C. | -d |
D. | -u |
Answer» B. -a | |
8. |
The name of the input and output files cannot be same while using sort command.$ |
A. | True |
B. | False |
Answer» C. | |
9. |
Which option is used by the sort command to redirect the output to a specified file?$ |
A. | -n |
B. | -t |
C. | -o |
D. | -u |
Answer» D. -u | |
10. |
Which option is used with sort command to sort multiple files collectively? |
A. | -m |
B. | -n |
C. | -c |
D. | -o |
Answer» B. -n | |
11. |
To check whether the file has actually been stored in the default order, we can use ____ option. |
A. | -n |
B. | -a |
C. | -d |
D. | -c |
Answer» E. | |
12. |
We cannot perform sorting on columns using sort command? |
A. | True |
B. | False |
Answer» C. | |
13. |
We can perform sorting on secondary key also using sort command. |
A. | True |
B. | False |
Answer» B. False | |
14. |
The sort order can be reversed using ___ option. |
A. | -t |
B. | -k |
C. | -r |
D. | -n |
Answer» D. -n | |
15. |
Which option is used for sorting a file according to primary key? |
A. | -t |
B. | -k |
C. | -n |
D. | -n |
Answer» C. -n | |
16. |
Which option is used with sort command to specify the field delimiter? |
A. | -a |
B. | -t |
C. | -k |
D. | -n |
Answer» C. -k | |
17. |
Sort command uses ____ as default field delimiter. |
A. | tab |
B. | single space |
C. | double tab |
D. | one or more continuous spaces |
Answer» E. | |
18. |
By default, sort command reorders lines in ASCII collating sequence. |
A. | True |
B. | False |
Answer» B. False | |
19. |
____ command is used for sorting a file on specified fields. |
A. | cut |
B. | sort |
C. | pr |
D. | tail |
Answer» C. pr | |