

MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
1. |
$# is used to show? |
A. | The number of arguments supplied to a script. |
B. | The filename of the current script. |
C. | The exit status of the last command executed. |
D. | The process number of the last background command |
E. | |
Answer» B. The filename of the current script. | |
2. |
We cannot use the unset command to unset variables that are marked ____________. |
A. | read |
B. | write |
C. | readonly |
D. | writeonly |
Answer» D. writeonly | |
3. |
Which keyword is used to remove the variable? |
A. | remove |
B. | readonly |
C. | unset |
D. | delete |
Answer» D. delete | |
4. |
How many prompt shell has? |
A. | 4 |
B. | 2 |
C. | 3 |
D. | 5 |
Answer» C. 3 | |
5. |
Which of the following command is used to display the environment variables only? |
A. | sh |
B. | set |
C. | env |
D. | var |
Answer» D. var | |
6. |
Whch of the following is invalid variable names? |
A. | VAR_1 |
B. | _ALI |
C. | VAR1 |
D. | VAR_A! |
Answer» E. | |
7. |
Unix shell variables will have their names in _____. |
A. | Uppercase |
B. | Lowercase |
C. | First character Uppercase and all other character Lowercase |
D. | First character Lowercase and all other character Uppercase |
Answer» B. Lowercase | |
8. |
The name of a variable can contain ________. |
A. | numbers |
B. | letters |
C. | underscore character |
D. | All of the above |
Answer» E. | |