

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_ONE_OF_THE_FOLLOWING_IS_AN_INTERNAL_COMMAND??$ |
A. | cut |
B. | expr |
C. | set |
D. | Is |
Answer» D. Is | |
2. |
The ____ allows us to read data from the same file containing the script.$ |
A. | >> |
B. | << |
C. | !! |
D. | — |
Answer» C. !! | |
3. |
Which_symbol_is_used_with_the_set_command_for_command_substitution?$ |
A. | – |
B. | — |
C. | ?? |
D. | _ |
Answer» C. ?? | |
4. |
____ command is the appropriate way to interrupt a program. |
A. | kill |
B. | SIGKILL |
C. | INT |
D. | trap |
Answer» E. | |
5. |
We can use the here document with interactive programs also. |
A. | True |
B. | False |
Answer» B. False | |
6. |
Which of the following command doesn’t accept a filename as an argument?$ |
A. | cut |
B. | ls |
C. | paste |
D. | mailx |
Answer» E. | |
7. |
Any command using standard input can take the input from here document. |
A. | True |
B. | False |
Answer» B. False | |
8. |
____ statement is used for shifting arguments left? |
A. | set |
B. | shift |
C. | cut |
D. | paste |
Answer» C. cut | |
9. |
Which command is used by the shell for manipulating positional parameters? |
A. | set |
B. | cut |
C. | case |
D. | paste |
Answer» B. cut | |
10. |
Which command is used for changing filename extensions? |
A. | chown |
B. | rename |
C. | basename |
D. | rm |
Answer» D. rm | |
11. |
Which of the following loop statements uses do and done keyword? |
A. | for |
B. | while |
C. | case |
D. | for and while |
Answer» E. | |
12. |
Which one of the following is used for looping with a list? |
A. | while |
B. | until |
C. | case |
D. | for |
Answer» E. | |
13. |
until loop operates with a reverse logic as used in while loop. |
A. | True |
B. | False |
Answer» B. False | |
14. |
Which of the following keywords are used in while loop? |
A. | do |
B. | done |
C. | then |
D. | do and done |
Answer» E. | |
15. |
Which of the following commands let us perform a set of instructions repeatedly? |
A. | for |
B. | while |
C. | until |
D. | for, while, until |
Answer» E. | |