Paper code: 13527
B.Sc. (Computer Science) (Part 3)
Paper No. 3.3
UNIX AND SHELL PROGRAMMING
Time: Three Hours] [Maximum Marks: 50
Note: Attempt any five questions. All questions carry equal marks.
1. (a) Explain the features of UNIX 0.S.
(b) Define the terms: kernel, Shell and Command Interpreter.
2. (a) Write command to search for any expression. How to find the directory in which you are currently working?
(b) Describe the “Daemon Process”.
3. (a) Who developed the UNIX O.S.? What is the meaning of . and .. ?
(b) Explain the mounting and unmounting of UNIX file system.
4. (a) Describe the language development tools: YACC and LEX.
(b) How would you display the strings ‘aaa’ and ‘bbb’ in two different lines using the banner command? What is Bourne shell?
5. (a) How C-shell is different from Bourne shell?
(b) What do the terms UID, PID stand for? What are the advantages and disadvantages of running a process in background?
6. (a) State whether the following statements are true or false:
- You can execute a shell script once it has been typed.
- Echo statement’s output can’t be redirected to a file.
- There is no restriction on the length of shell variable name.
- While executing a shell script the shell acts as a compiler.
- Programs written for Bourne shell are compatible for (with) Korn shell.
(b) What do you mean by command line arguments?
7. (a) Explain the following:
- Shell meta characteristics
- Forking processes
(b) Describe the child-parent relationship among the processes.
8. (a) Explain in details the terms:
- Debuggers DBx
- Role of shell
(b) Any integer is input through the keyboard. Write a script/program to find out whether it is an odd number or even number.
9. Write short notes on any four of the following:
- Handling user account in UNIX
- Process Synchronization
- File permissions in UNIX
- System booting
- pwd, ls, who, more and ps