JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2019 LINUX PROGRAMMING Previous Question Paper (April/May - 2019 - R17)

MCA | 2019 | IV | R17 | April/May - 2019

Answer PaperPaper Code: 844ABMaximum Marks: 75Time: 3hrs

Note: This question paper contains two parts A and B. Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 10 marks and may have a, b, c as sub questions.

Part A

125 marks
a

Write short notes on file name substitution and command substitution.

5 marks

Answer

File name substitution, also known as globbing, allows the shell to expand wildcards like * (matches any string), ? (matches any single character), and [] (matches any character within the set) to match filenames in the directory. Command substitution allows the output of a command to be replaced in the command line. It is achieved using backticks (`command`) or the $(command) syntax, where the shell executes the enclosed command and replaces the expression with the standard output of that command.

b

Explain in detail about stat family.

5 marks

Answer

The stat family of system calls (stat, fstat, and lstat) is used to retrieve information about a file's status. They populate a struct stat structure containing metadata such as file size, inode number, permissions, owner ID, and timestamps. The difference lies in how they handle files: stat takes a path name, fstat takes an open file descriptor, and lstat is identical to stat but does not follow symbolic links, returning information about the link itself instead of the target file.

c

Write a program to illustrate zombie process.

5 marks

Answer

Sign in to view the complete answer paper.

d

Explain briefly about the types of Inter Process Communication.

5 marks

Answer

Sign in to view the complete answer paper.

e

Briefly discuss about the socket options.

5 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Write short notes on shell responsibilities.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a shell script to find the factorial of a given number.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Write short notes on interrupt processing in shell.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a shell script to list all the directories and files in the current directory.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Write short notes on scalar in Perl and their operations.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain pattern matching with an example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Explain the concept of kernel support for files.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to check and report file descriptors of all opened files.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Explain in brief the kernel support for signals.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write about alarm and pause functions with example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

What is meant by process termination? Explain the various types of process terminations with suitable example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write short notes on process attributes.

5 marks

Answer

Sign in to view the complete answer paper.

8

Explain in detail about the process of reading and writing a message from and to a message queue.

10 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Explain about inter process communication using pipes.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain popen() and pclose() functions with suitable examples.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Explain about the semget( ), semop( ), and semctl( ) functions.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about the kernel support for shared memory.

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

What are Linux Sockets? Write about connection oriented and connectionless protocols.

10 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of LINUX PROGRAMMING from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for MCA 2019 IV, April/May - 2019, R17.

For the question paper without answers, switch to the Question Paper tab.

Other papers in LINUX PROGRAMMING

Loading Question Papers

Fetching data from database...