Exam Details
Subject | unix and shell programming | |
Paper | ||
Exam / Course | m.sc. (software engineering) | |
Department | ||
Organization | Alagappa University Distance Education | |
Position | ||
Exam Date | May, 2016 | |
City, State | tamil nadu, karaikudi |
Question Paper
DISTANCE EDUCATION
M.Sc. Software Engineering Years Integrated) DEGREE
EXAMINATION, MAY 2016.
UNIX AND SHELL PROGRAMMING — LAB
Time Three hours Maximum 100 marks
Examiner should select and give ONE question to each
candidate from Lot system.
1. Write a Menu Driven shell program to copy, edit,
rename, and delete a file.
A Hospital maintains patient details. Write a shell
program to list the following.
Patients in a blood group wise.
Patients in age between 25 to 40.
Exit.
2. Write a program for four-function calculator by
using yacc command.
Write and execute a shell program to do the
following:
Write given string at given row, column in
BOLD, Normal and reverse video.
Search a given string using awk with various
options.
Cut here
Sub. Code
37
DE-9215
Ws11
2
3. Write and execute a shell program to generate leave
status report of an organization.
Write and execute a shell program to print monthly
payslips for employees in an organization. Assume
your own data and generate accordingly.
4. Write a shell program to solve
Write a shell program which periodically monitors
the disk for the existence of a file and then executes
the program once the file has been located. (using
UNTIL statement).
5. Write a shell program which accepts the name of a
file from the standard input and then performs the
following tests on it:
File existence
File readable
File writable
Both readable and writable.
Write a Menu Driven Shell program for the
following:
Today's date
Users of system
Quit to UNIX.
Cut here
Cut here
DE-9215
Ws11
3
6. Write a shell program which periodically monitors
the disk for the existence of a file and then executes
the program once the file has been located. (using
UNTIL statement).
Write a shell program which accepts the name of a
file from the standard input and then perform the
following tests on it:
Enter the 5 names in a file
Sort the name in existing file
List unsorted and sorted file
Quit.
7. Write a Menu Driven shell program to perform the
following tasks
Enter the sentence in a file
Search a given whole word in an existing file
Quit.
Write a shell program to prepare electric bill for
domestic consumers.
For first 100 units Rs. 1.00/unit
For next 100 units Rs. 1.50/unit
Above 200 units Rs. 3.00/unit
Prepare the Electricity bill in the following format:
Customer no
Customer name
Current reading
Charge
Cut here
DE-9215
Ws11
4
8. Write a shell program to read and write the content
in a file.
Write a shell program using 3 arguments to take
the pattern as well as input and output file names.
If the pattern is found, display "Pattern found" else
display "Error message" Also check if right number
of arguments are entered.
M.Sc. Software Engineering Years Integrated) DEGREE
EXAMINATION, MAY 2016.
UNIX AND SHELL PROGRAMMING — LAB
Time Three hours Maximum 100 marks
Examiner should select and give ONE question to each
candidate from Lot system.
1. Write a Menu Driven shell program to copy, edit,
rename, and delete a file.
A Hospital maintains patient details. Write a shell
program to list the following.
Patients in a blood group wise.
Patients in age between 25 to 40.
Exit.
2. Write a program for four-function calculator by
using yacc command.
Write and execute a shell program to do the
following:
Write given string at given row, column in
BOLD, Normal and reverse video.
Search a given string using awk with various
options.
Cut here
Sub. Code
37
DE-9215
Ws11
2
3. Write and execute a shell program to generate leave
status report of an organization.
Write and execute a shell program to print monthly
payslips for employees in an organization. Assume
your own data and generate accordingly.
4. Write a shell program to solve
Write a shell program which periodically monitors
the disk for the existence of a file and then executes
the program once the file has been located. (using
UNTIL statement).
5. Write a shell program which accepts the name of a
file from the standard input and then performs the
following tests on it:
File existence
File readable
File writable
Both readable and writable.
Write a Menu Driven Shell program for the
following:
Today's date
Users of system
Quit to UNIX.
Cut here
Cut here
DE-9215
Ws11
3
6. Write a shell program which periodically monitors
the disk for the existence of a file and then executes
the program once the file has been located. (using
UNTIL statement).
Write a shell program which accepts the name of a
file from the standard input and then perform the
following tests on it:
Enter the 5 names in a file
Sort the name in existing file
List unsorted and sorted file
Quit.
7. Write a Menu Driven shell program to perform the
following tasks
Enter the sentence in a file
Search a given whole word in an existing file
Quit.
Write a shell program to prepare electric bill for
domestic consumers.
For first 100 units Rs. 1.00/unit
For next 100 units Rs. 1.50/unit
Above 200 units Rs. 3.00/unit
Prepare the Electricity bill in the following format:
Customer no
Customer name
Current reading
Charge
Cut here
DE-9215
Ws11
4
8. Write a shell program to read and write the content
in a file.
Write a shell program using 3 arguments to take
the pattern as well as input and output file names.
If the pattern is found, display "Pattern found" else
display "Error message" Also check if right number
of arguments are entered.
Subjects
- c programming – lab
- c++ lab
- case tools lab
- computer graphics and multimedia
- computer networks
- cryptography and network security
- data structures lab
- data ware housing and mining
- distributed computing
- internet and java - lab
- internet and java programming
- mobile communications
- object oriented programming and c++
- open source architecture
- open source lab
- operating systems
- relational database management system
- relational database management systems –lab
- software engineering
- software project management and metrics
- software quality assurance and standards
- software testing and reuse
- unix and shell programming
- visual basic and vc++ lab
- visual programming
- web technology
- web technology — lab