#  >> Standardized Tests >> SSAT

Anna university question paper for computer practicals in unix BE 1st 2nd sem 2010?

Anna University Question Paper

Course: Computer Practicals in UNIX

Semester: 1st 2nd

Year: 2010

Instructions:

* Answer all questions.

* Each question carries 10 marks.

Question 1:

Write a shell script that takes a file name as an argument and prints the number of lines, words, and characters in the file.

Question 2:

Write a C program to implement the following commands:

* ls

* cp

* mv

* rm

Question 3:

Write a shell script that takes a directory name as an argument and lists all the files in that directory.

Question 4:

Write a C program to implement the following system calls:

* open()

* read()

* write()

* close()

Question 5:

Write a shell script that takes a string as an argument and prints the string in reverse order.

Learnify Hub © www.0685.com All Rights Reserved