JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III LINUX PROGRAMMING Previous Question Paper (March - 2024 - R13)

B.Tech | III | I | R13 | March - 2024

Answer PaperPaper Code: 115EDMaximum Marks: 75Time: 3 hours

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

1.a

What is Pipe command?

2 marks

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.

1.b

Write the purpose of mv command.

3 marks

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.

1.c

Define file meta data.

2 marks

Answer

Sign in to view the complete answer paper.

1.d

Explain stream errors briefly.

3 marks

Answer

Sign in to view the complete answer paper.

1.e

Define zombie process.

2 marks

Answer

Sign in to view the complete answer paper.

1.f

What are process control operations?

3 marks

Answer

Sign in to view the complete answer paper.

1.g

What is named pipe?

2 marks

Answer

Sign in to view the complete answer paper.

1.h

Write the different methods of IPC.

3 marks

Answer

Sign in to view the complete answer paper.

1.i

What is Berkley Socket?

2 marks

Answer

Sign in to view the complete answer paper.

1.j

Give the applications of shared memory.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Explain file handling utilities in Linux.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a Shell script to print Fibonacci series.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Describe text processing commands in Linux.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a Shell program to display duplicate lines in a file.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Explain file system structure in Linux.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about link (), unlink () and symlink () system calls.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Describe three stat functions with example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain open (), seek () system calls with all attributes.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Describe ‘exit’ function in detail.

5 marks

Answer

Sign in to view the complete answer paper.

b

Elaborate ‘wait’ and ‘waitpid’ system calls with example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Kill and raise system calls

5 marks

Answer

Sign in to view the complete answer paper.

b

Pause and abort system calls.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Explain pipe, popen, pclose functions in detail.

5 marks

Answer

Sign in to view the complete answer paper.

b

Implement IPC using Pipe with an example program.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

What is message queue? Explain its functions in Linux.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to retrieve message from message queue.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Describe shmget and shmat system calls with example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain kernel data structure of shared memory.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Describe socket address structure in UNIX.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write script to establish client server communication using Socket.

5 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 B.Tech IT III I, March - 2024, R13.

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

Other papers in LINUX PROGRAMMING

Loading Question Papers

Fetching data from database...