InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
To change the login shell in some system (like Linux) we can use ____ command.(a) chshell(b) chshl(c) chsh(d) chI have been asked this question during an interview.I would like to ask this question from Shell Basics in chapter The Shell of Unix |
|
Answer» Correct choice is (c) chsh |
|
| 52. |
Wildcards are special characters which are used to replace or represent one or more characters.(a) True(b) FalseI got this question in an interview for job.My enquiry is from Pattern Matching, Escaping and Quoting in division The Shell of Unix |
|
Answer» Right choice is (a) True |
|
| 53. |
Which of the following expression is a correct wildcard pattern if we want an expression in which the last character is not numeric?(a) *[!0](b) *[0-9](c) [0-9](d) *[!0-9]I have been asked this question during a job interview.Question is taken from Shell Basics in division The Shell of Unix |
|
Answer» CORRECT OPTION is (d) *[!0-9] Explanation: Wildcards are used for PATTERN matching. The COMMAND *[!0-9] will match all expression containing any characters except that the last CHARACTER entered is not numeric. Here ‘!’ is used for NOT. |
|
| 54. |
The shell waits for the command to complete and normally can’t do any work while the command is executing.(a) True(b) FalseThe question was asked during an internship interview.Origin of the question is Shell Basics topic in section The Shell of Unix |
|
Answer» Right choice is (a) True |
|
| 55. |
Which of the following is/are true about Shell?(a) Shell is a multi-faceted program(b) Shell is a command interpreter(c) Shell provides us with an environment to work in(d) Shell is a multi-faceted, command interpreter and provides an environment to work inThis question was addressed to me in unit test.Enquiry is from Shell Basics in section The Shell of Unix |
|
Answer» Correct choice is (d) Shell is a multi-faceted, command interpreter and provides an environment to work in |
|
| 56. |
In Shell’s interpretive cycle, the shell first scans for ____ in the entered command.(a) characters(b) priority(c) meta-characters(d) wildcardsI got this question in an international level competition.This interesting question is from Shell Basics in section The Shell of Unix |
|
Answer» Right choice is (c) meta-characters |
|
| 57. |
Which shell is the most common and best to use?(a) Korn shell(b) POSIX shell(c) C shell(d) Bash shellI have been asked this question in homework.My question is based upon Shell Basics in portion The Shell of Unix |
|
Answer» Right CHOICE is (d) BASH shell |
|
| 58. |
Which command does not terminates unless we log out of the system?(a) history(b) shell(c) echo(d) loginI have been asked this question in an interview for job.My question is based upon Shell Basics in section The Shell of Unix |
|
Answer» Correct choice is (b) SHELL |
|
| 59. |
Which one of the following command will display the name of the shell we are working on?(a) echo shell(b) echo $(c) echo $SHELL(d) echo $$This question was addressed to me in examination.Question is from Shell Basics in portion The Shell of Unix |
|
Answer» Correct OPTION is (c) echo $SHELL |
|
| 60. |
What is the default symbol for command prompt in C shell?(a) $(b) %(c) #(d) @The question was asked during an interview.This interesting question is from Shell Basics in portion The Shell of Unix |
|
Answer» RIGHT option is (b) % The explanation is: If we are using C SHELL on our SYSTEM, then the default prompt will be REPRESENTED by %. |
|
| 61. |
What is the default symbol for command prompt in Bourne shell?(a) $(b) %(c) #(d) @The question was asked during an interview.The query is from Shell Basics topic in section The Shell of Unix |
|
Answer» CORRECT ANSWER is (a) $ The explanation is: If we are using BOURNE shell on our system, then the default prompt will be REPRESENTED by $. |
|
| 62. |
In UNIX there are ___ major types of shells.(a) 2(b) 3(c) 4(d) manyThis question was addressed to me in final exam.This interesting question is from Shell Basics topic in division The Shell of Unix |
|
Answer» The correct ANSWER is (a) 2 |
|
| 63. |
There can be multiple kernels on a single UNIX system.(a) True(b) FalseI got this question in quiz.The query is from Shell Basics topic in portion The Shell of Unix |
|
Answer» The correct answer is (b) False |
|
| 64. |
The prompt issued by the shell is called ______(a) prompt(b) command translator(c) command prompt(d) command executorI got this question during an internship interview.My question comes from Shell Basics in chapter The Shell of Unix |
|
Answer» The CORRECT ANSWER is (c) command prompt |
|
| 65. |
On a UNIX system, there can be ____ shells running simultaneously.(a) 1(b) 2(c) many(d) 4This question was addressed to me in an online interview.This intriguing question comes from Shell Basics topic in chapter The Shell of Unix |
|
Answer» Right answer is (c) many |
|
| 66. |
Shell provides us with an interface to the operating system.(a) True(b) FalseThe question was posed to me in homework.This is a very interesting question from Shell Basics in division The Shell of Unix |
|
Answer» The correct option is (a) True |
|