JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III LINUX PROGRAMMING Previous Question Paper (March - 2024 - R13)
Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.
Part A
What is Pipe command?
Answer
A pipe is a mechanism in Linux that allows the standard output of one command to be used as the standard input for another command. It is represented by the vertical bar symbol (|) and enables the chaining of multiple processes to perform complex tasks efficiently without the need for temporary intermediate files.
Write the purpose of mv command.
Answer
The mv command is primarily used to move or rename files and directories within a Linux file system. Its core functionality involves changing the location of a file or directory from a source path to a destination path. If the destination is a different directory, the file is moved; if the destination is in the same directory but has a different name, the file is effectively renamed. Additionally, mv can be used to overwrite existing files at the destination, provided the user has the necessary permissions, often governed by flags like -i for interactive confirmation or -f for forced overwriting.
Define file meta data.
Answer
Sign in to view the complete answer paper.
Explain stream errors briefly.
Answer
Sign in to view the complete answer paper.
Define zombie process.
Answer
Sign in to view the complete answer paper.
What are process control operations?
Answer
Sign in to view the complete answer paper.
What is named pipe?
Answer
Sign in to view the complete answer paper.
Write the different methods of IPC.
Answer
Sign in to view the complete answer paper.
What is Berkley Socket?
Answer
Sign in to view the complete answer paper.
Give the applications of shared memory.
Answer
Sign in to view the complete answer paper.
Part B
Explain file handling utilities in Linux.
Answer
Sign in to view the complete answer paper.
Write a Shell script to print Fibonacci series.
Answer
Sign in to view the complete answer paper.
Describe text processing commands in Linux.
Answer
Sign in to view the complete answer paper.
Write a Shell program to display duplicate lines in a file.
Answer
Sign in to view the complete answer paper.
Explain file system structure in Linux.
Answer
Sign in to view the complete answer paper.
Discuss about link (), unlink () and symlink () system calls.
Answer
Sign in to view the complete answer paper.
Describe three stat functions with example.
Answer
Sign in to view the complete answer paper.
Explain open (), seek () system calls with all attributes.
Answer
Sign in to view the complete answer paper.
Describe ‘exit’ function in detail.
Answer
Sign in to view the complete answer paper.
Elaborate ‘wait’ and ‘waitpid’ system calls with example.
Answer
Sign in to view the complete answer paper.
Kill and raise system calls
Answer
Sign in to view the complete answer paper.
Pause and abort system calls.
Answer
Sign in to view the complete answer paper.
Explain pipe, popen, pclose functions in detail.
Answer
Sign in to view the complete answer paper.
Implement IPC using Pipe with an example program.
Answer
Sign in to view the complete answer paper.
What is message queue? Explain its functions in Linux.
Answer
Sign in to view the complete answer paper.
Write a program to retrieve message from message queue.
Answer
Sign in to view the complete answer paper.
Describe shmget and shmat system calls with example.
Answer
Sign in to view the complete answer paper.
Explain kernel data structure of shared memory.
Answer
Sign in to view the complete answer paper.
Describe socket address structure in UNIX.
Answer
Sign in to view the complete answer paper.
Write script to establish client server communication using Socket.
Answer
Sign in to view the complete answer paper.