This download link is referred from the post: JNTUH MCA 3rd Sem Last 10 Years 2023-2013 Question Papers R20-R09 || Jawaharlal nehru technological university
Firstranker's choice
Code No: 813AM R13
--- Content provided by FirstRanker.com ---
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
--- Content provided by FirstRanker.com ---
MCA III Semester Examinations, August - 2017
LINUX PROGRAMMING
Time: 3 Hours Max. Marks: 60
Note:
This question paper contains two parts A and B.
--- Content provided by FirstRanker.com ---
Part A is compulsory which carries 20 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 8 marks and may have a, b, c as sub questions.
PART - A
5 x 4 Marks = 20
- Write a bash script that displays a list of all the directory files in the current directory.[4]
- What are the differences among stat family (stat, fstat and lstat) of functions? [4]
- What are the differences between fork( ) and vfork( ) functions? [4]
- Give the syntax of semop( ) function. What are its uses? [4]
- Draw a diagram that shows the calling sequence of socket system calls for connection oriented communication between a Client and a Server. [4]
--- Content provided by FirstRanker.com ---
PART -B
5 x 8 Marks = 40
--- Content provided by FirstRanker.com ---
-
Explain with examples the quoting methods in shell.
Write an awk script to find the number of characters, words and lines in a file. [4+4]
OR
Explain the purpose of following commands:
1) chmod ii) tar
--- Content provided by FirstRanker.com ---
Write a bash script that uses a function to find the factorial of a number. [4+4]
-
Write a C program that takes a file name as command-line argument and displays the following information on the file:
1) file type ii) last access time. [4+4]
OR
--- Content provided by FirstRanker.com ---
Write a C program to display all the directory files in the current directory.
What is the main difference between mandatory file locking and advisory file locking?
[4+4]
-
Explain with examples the different ways in which a process can respond to signals.
--- Content provided by FirstRanker.com ---
Why were the signal facilities provided by Unix unreliable in older versions of Unix?
[4+4]
OR
When a child process is created, what resources are inherited from its parent? What attributes are different between the parent and the child process?
Explain with syntax the purpose of kill( ) function. [4+4]
--- Content provided by FirstRanker.com ---
-
How are the named and unnamed pipes created? What are the differences between them?
Explain with syntax the purpose of popen( ) and pclose( )functions. [4+4]
OR
Explain with syntax the purpose of the following message queue functions:
--- Content provided by FirstRanker.com ---
a) msgget( ) b) msgsnd() c) msgrcv() d) msgctl( ) [8]
-
Write C Programs (Send.c and Recv.c) to perform the following:
One process reads a string from standard input device into a Shared memory segment.
Another process writes the same string from the Shared memory segment to the standard output device. [8]
--- Content provided by FirstRanker.com ---
OR
Write C Programs (Server.c and Client.c) for connection oriented communication between Client and Server processes to perform the following using sockets in the internet domain:
Client process sends a string to the Server process. The Server process receives the string, reverses it and sends it back to the Client process. [8]
--00000--
--- Content provided by FirstRanker.com ---
Firstranker's choice
--- Content provided by FirstRanker.com ---
This download link is referred from the post: JNTUH MCA 3rd Sem Last 10 Years 2023-2013 Question Papers R20-R09 || Jawaharlal nehru technological university