BC0056 Assignment Spring 2013

2
February 2013 (Spring drive) Bachelor of Computer Application (BCA) Semester 5 BC0056 Unix Operating System 4 Credits (Book ID: B0973) (40 + 20 Marks) Answer all questions. Theoretical Questions [ 5 x 8 marks] 1. What are the layers present in a UNIX Architecture? Lsit and explain each of them. [4+4 Marks] 2. Explain the term Inter-Process Communication. What are various approaches to achieve the same? [4+4 Marks] 3. What is the procedure for viewing and Setting Environment Variables [4+4 Marks] 4. How will you perform the following in vi? [2x 4 Marks] i) To search and replace all occurences of pattern1 with pattern2 ii) insert text (and enter input mode) iii) append text (to end of line) iv) Move to the end of line 5. What is a crond? What is its use? [4+4 Marks] Practical Questions [ 2 x 10 marks] 6. Demonstrate how and when can you use the commands: vi, cat, chmod, grep, man, pwd, ps, kill, mkdir, rm. [10 marks] 7. Write a C program that illustrates the creation of child process using fork system call. One process finds sum of even series and other process finds sum of odd series. [10 marks]

Transcript of BC0056 Assignment Spring 2013

Page 1: BC0056 Assignment Spring 2013

February 2013 (Spring drive)

Bachelor of Computer Application (BCA) – Semester 5

BC0056 – Unix Operating System – 4 Credits

(Book ID: B0973)

(40 + 20 Marks)

Answer all questions.

Theoretical Questions [ 5 x 8 marks]

1. What are the layers present in a UNIX Architecture? Lsit and explain each of them. [4+4 Marks]

2. Explain the term Inter-Process Communication. What are various

approaches to achieve the same? [4+4 Marks]

3. What is the procedure for viewing and Setting Environment Variables

[4+4 Marks]

4. How will you perform the following in vi? [2x 4 Marks]

i) To search and replace all occurences of pattern1 with pattern2

ii) insert text (and enter input mode)

iii) append text (to end of line)

iv) Move to the end of line

5. What is a crond? What is its use? [4+4 Marks]

Practical Questions [ 2 x 10 marks]

6. Demonstrate how and when can you use the commands: vi, cat, chmod, grep, man,

pwd, ps, kill, mkdir, rm. [10 marks]

7. Write a C program that illustrates the creation of child process using fork system call.

One process finds sum of even series and other process finds sum of odd series. [10

marks]

Page 2: BC0056 Assignment Spring 2013