For More Question Papers Visit - www.pediawikiblog.com 10cs62
USN
Sixth Semester B.E. Degree Examination, Dec.2015 lJan.20l6
m
UNIX System Programming Max. Marks: !00 Note: Answer FIVE full questions, selecting at least TWO questionsfrom each part.
o ()!
E
::
H= *g :1 Y oo ,l
2 a. b. c.
g.
E9
1 a. Discuss the differences between ANSI C and K & R C with example for each. (10 Marks) b. What are the API common characteristics? List any six values of the global variable errno (10 Marks) along with their meanings whenever API's fail. Explain the commands to create different file types supported by Explain IINIX Kernel support for files with a neat diagram, Differentiate symbolic links and hard links.
LINIX.
lo
UI
^. ^_ PART-A
coo
ib
€E € fi
co
Time: 3 hrs.
q 3 a. fl Y b. E .fl oB
Explain the following general file i) open( ii) fcnt( iii) Explain Symbolic Link file
S 4 a. -L b. S 5u c.
Draw and explain the summary of starting and terminating a C program. With a neat sketch, explain the memory layout of a C-program. Explain exit, _exit and atexit functions with their prototypes.
.g
-z'Eets
(12 Marks) (08 Marks)
PART-B
What is a race condition? Write a program for generating race Explain in detail the fuiily of exec functions.
condition.
ed
a'ts ; € 5 a. -li f b.
ia
ES o0<
(08 Marks) (06 Marks)
*.
ik
UL
)
API's: r'.',-,;': lseekQ)' ) API's.
w
E
(06 Marks)
(06 Marks) (06 Marks) (08 Marks)
(08 Marks) (12 Marks)
6 a. What are sigh4l3fl Write a program to setup signal handler for the SIGINT signal using (06 Nlarks) sigaction API. u" prototype. process? b. What is with its mask of a Explain sigprocmask function along signal E (06 Ntarks) $€ c. D+fiirc daemon process. Discuss the basic coding rules of the daemon process. (08 Marks) A EEfi gd ' i *&\' (04 Marks) 7 Discuss the applications of FIFOs. a *E " (06 Marks) F.S ," 3 b Explain Popen and Pclose functions. (10 Marks) c. Explain different queues. API's message used with E ^E t* l, 6s.flW o - q q,*ls (12 Marks) $ff -b a. Explain shmget, shmctl, shmat and shmdt functions. (08 Marks) b. Write short notes on client server properties. ,J
w
w w
.p
€E FF
()
z !
o g
For More Question Papers Visit - www.pediawikiblog.com
Unix System Programming Jan 2016 (2010 Scheme).pdf ...
What is a race condition? Write a program for generating race condition. (08 Marks). -li f b. Explain in detail the fuiily of exec functions. (12 Marks). -z- ts 'Ee. ⬠E 6 a. What are sigh4l3fl Write a program to setup signal handler for the SIGINT signal using. F F sigaction API. (06 Nlarks). u" E b. What is signal mask of a process?
tFa"* o3 {1,&' - (O8Marks). ir"i b. Explain shift reduce parsing with an example. (08 Marks). ⬠c. Define the following terms: i) yytext, ii) yylval, iii) yylex, iv) yyparse.
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Main menu.
Write a C++ program using class and explain public, private, object, class. Explain ftier:id function and friend class, with exarnple. (10 Marks). (10 Marks).
i) # define square(x) x * x. void main( ) ... Describe hase class access control with an example. b. ... Displaying Programming in C++ Jan 2016 (2010 Scheme).pdf.
Expiain static and dynamic characteristics of sensors. Explain workirlg principle of Hall effect sensor. Deftne following terms: i) Hysteresis error. ii) Repeatability.
... originally developed in 1969 by a group of AT&T employees at Bell Labs, ... time by AT&T as well as various commercial vendors and non-profit organizations.