Computer Science Ques 319

Question: The program which takes user input, interprets it and takes necessary action is___________

Options:

A) Kernel

B) System calls

C) Shell

D) Scheduler

E) None of these

Show Answer

Answer:

Correct Answer: C

Solution:

  • The shell is an interactive program that gets user input, interprets it and then takes necessary action accordingly, it acts like a command interpreter for the user. As soon as a command is received from a user. The shell looks for a matching intrinsic: command and executes it. If it doesn’t find an intrinsic command. It searches for a disk file corresponding to the command and execute it. During this process it substitutes any variable and other commands listed in the command line. It also handles I/O redirection and can execute batch files containing other UNIX commands and control structures