JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2019 LINUX PROGRAMMING Previous Question Paper (April/May - 2019 - R17)
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
Write short notes on file name substitution and command substitution.
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.
Explain in detail about stat family.
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.
Write a program to illustrate zombie process.
Answer
Sign in to view the complete answer paper.
Explain briefly about the types of Inter Process Communication.
Answer
Sign in to view the complete answer paper.
Briefly discuss about the socket options.
Answer
Sign in to view the complete answer paper.
Part B
Write short notes on shell responsibilities.
Answer
Sign in to view the complete answer paper.
Write a shell script to find the factorial of a given number.
Answer
Sign in to view the complete answer paper.
Write short notes on interrupt processing in shell.
Answer
Sign in to view the complete answer paper.
Write a shell script to list all the directories and files in the current directory.
Answer
Sign in to view the complete answer paper.
Write short notes on scalar in Perl and their operations.
Answer
Sign in to view the complete answer paper.
Explain pattern matching with an example.
Answer
Sign in to view the complete answer paper.
Explain the concept of kernel support for files.
Answer
Sign in to view the complete answer paper.
Write a program to check and report file descriptors of all opened files.
Answer
Sign in to view the complete answer paper.
Explain in brief the kernel support for signals.
Answer
Sign in to view the complete answer paper.
Write about alarm and pause functions with example.
Answer
Sign in to view the complete answer paper.
What is meant by process termination? Explain the various types of process terminations with suitable example.
Answer
Sign in to view the complete answer paper.
Write short notes on process attributes.
Answer
Sign in to view the complete answer paper.
Explain in detail about the process of reading and writing a message from and to a message queue.
Answer
Sign in to view the complete answer paper.
Explain about inter process communication using pipes.
Answer
Sign in to view the complete answer paper.
Explain popen() and pclose() functions with suitable examples.
Answer
Sign in to view the complete answer paper.
Explain about the semget( ), semop( ), and semctl( ) functions.
Answer
Sign in to view the complete answer paper.
Explain about the kernel support for shared memory.
Answer
Sign in to view the complete answer paper.
What are Linux Sockets? Write about connection oriented and connectionless protocols.
Answer
Sign in to view the complete answer paper.