Mca-502 Unix and Shell Programming Jun 2008 PDF
Mca-502 Unix and Shell Programming Jun 2008 PDF
MCA-502
(MC\-SOZ)
- ~--.,...
I , I MCA-$ 02
I , I
VDII -V
programming Ianguqc. 10
operating system. 10
decimal number. 10
MCA-502
\ M. C. A. (Fifth Semester)
EXAMlS ATlO N, Ncv-uee., 2007
UNIX AND SHElL PROGRAM MING
(MCA - S02:)
TIme : Three Houn
Maximum Marks: 1(}()
Minimum Pass Marks : 40
MCA-S02 4,200
MCA-502
M. C. A. (Fifth Seml'Slt'r)
(MCA -SOl)
"]
4. (,) WhO! is Link System Call ? Discuss the algorithm for
linking a file. 10
) What is Ll-area ? 4
filc ~ fro m the curre nt d irectory and edd th", Ext .. nsion
(, ) DuemOI1 process
MCA-S02 3....
MCA- S02
M. C. A. (Fifth Semester) EXAMINATION, Dec., 2005
UNIX AND SHELL PROGRAMMING
(MCA -50Z)
Tune .. Three HOUT:i
NOll' : Atte mpt any five questions. All questions carry equal
marks.
I. (a) What ls kernel? Draw block diagram c f the system
ke rn el. Explain it. 10
(b) What is directory execute permission? Compare and
contrast interrupts and exceptions. 10
1"
MCA-SOl 4,010
MCA-502
1"
4. (3) Explain the following shell s tatements laking suitable
shell script: 10
(ll For
(ii) Expr
(iii) Ten
(iv) Case
(b) The length and breadth of a rectangle and radius of
a circle are input through the keyboard. Write a
shell script to ccnlateeatc the area ::nd perimeter of
the rectangle and the area and circumference of the
circle. 10
. .
Courtesy: Bansal Institute of Science & Technology, Bhopal
-
http://bist.dyndns.org
'
'Total No. of Ouestlons : 8 1 [ Total No. of Printed Pages : 2
MCA-502
M. C. A. (Fifth Semester) EXAMINATIO N, Dt'C.,200.t
\1 UN IX Ai'll) SHELL PRO GRAMMING
(MCA- SOl)
Time: Three flours
\ 6. (a)
semaphore mechanisms.
Exp lain the following shell statement laking suitable
shell script :
(i) While
10
10
( ii ) Until
(iii) Test
( iv) If else
(b) Write a shell script to find the Greatest Common
Divisor (Ge D) for the given number 120 and 9. 10
7. (a) What arc a..... k built in variables? 4
(b) Write a shell script which receive filename <IS
argument. Check whether it LS a file or directory '! If
it is a filename then name of the file as well as the
number of lines present in it 'I Should be reported.Hl
(c) Write an Interacdve script that ask for a word and a
filename and then show how man y times that word
occurred in the file (using awk} ? 6
MCA.-502 4,050
MCA-502
I a I
MCA-502
Courtesy: Bansal Institute of Science & Technology, Bhopal http://bist.dyndns.org
.'
IaI
(b) Di fferentiate between named and unnamed pipes.
Discuss the pipe system call. a
(0) Briefly discuss crossing of mount point. 4
5. (,) What are the components of the context of process '}
What are steps for a context switch? 8
\
\ (b) What do you understand by raising the processo r
execution level'} Write algorithm for wakeup. 8 ~
(0) What is U area? 4