

MCQOPTIONS
Saved Bookmarks
This section includes 15 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
1. |
WHICH_COMMAND_IS_USED_FOR_DISPLAYING_THE_BEGINNING_OF_A_FILE??$ |
A. | pr |
B. | head |
C. | begin |
D. | lp |
Answer» C. begin | |
2. |
Which option is used with the head command to specify line count to display?$ |
A. | -a |
B. | -h |
C. | -n |
D. | -o |
Answer» D. -o | |
3. |
By default, how many lines are displayed using the head command?$ |
A. | 5 |
B. | 10 |
C. | 4 |
D. | 20 |
Answer» C. 4 | |
4. |
Which of the following command is incorrect? |
A. | pr dept.lst |
B. | head -n 5 emp.lst |
C. | tail -o +5 emp.lst |
D. | tail -3 emp.lst |
Answer» D. tail -3 emp.lst | |
5. |
Which symbol is used with the tail command to print the file from the selected line? |
A. | + |
B. | – |
C. | %% |
D. | ^ |
Answer» B. ‚Äö√Ñ√∂‚àö√ë‚àö¬® | |
6. |
We can also use -n option with tail command. |
A. | True |
B. | False |
Answer» B. False | |
7. |
___ command is used for displaying the end of the file. |
A. | head |
B. | tail |
C. | lp |
D. | pr |
Answer» C. lp | |
8. |
___ operator is used with pr command to start printing from a specific page? |
A. | – |
B. | |
C. | + |
Answer» D. | |
9. |
-h option is used with pr command to add a header of our choice. |
A. | True |
B. | False |
Answer» B. False | |
10. |
Which option is used with pr command to display output along with line numbers? |
A. | -d |
B. | -n |
C. | -o n |
D. | -t |
Answer» C. -o n | |
11. |
Which option is used with pr command to suppress the header and footers? |
A. | -p |
B. | -k |
C. | -t |
D. | -n |
Answer» D. -n | |
12. |
Which option is used with pr command for printing multi-columnar output? |
A. | -p |
B. | -k |
C. | -d |
D. | -pr |
Answer» C. -d | |
13. |
pr command adds ____ lines of margin at the top and bottom. |
A. | 5 |
B. | 4 |
C. | 2 |
D. | 1 |
Answer» B. 4 | |
14. |
Which command is used for preparing a file for printing? |
A. | cd |
B. | cat |
C. | |
D. | pr |
Answer» E. | |
15. |
Filter’s are a category of commands that take the advantage of shell redirection feature. |
A. | True |
B. | False |
Answer» B. False | |