JNTU

JNTU B.Tech III LINUX PROGRAMMING Previous Question Paper (November/December - 2017 - R13)

B.Tech | III | I | R13 | November/December - 2017

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

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

Distinguish between absolute and relative pathname.

2 marks

Answer

An absolute pathname begins with the root directory (/) and specifies the complete path to a file or directory. A relative pathname specifies the location of a file or directory starting from the current working directory, without a leading slash.

b

Explain how files can be archived and extracted in Linux.

3 marks

Answer

Files are archived using the tar (Tape Archive) utility. To create an archive, the command

tar -cvf archive_name.tar file_list
is used. To extract files from an existing archive, the command
tar -xvf archive_name.tar
is used.

c

What is a sticky bit?

2 marks

Answer

Sign in to view the complete answer paper.

d

What is an inode?

3 marks

Answer

Sign in to view the complete answer paper.

e

Give the list of functions that return various process identifiers.

2 marks

Answer

Sign in to view the complete answer paper.

f

What are the different ways in which a process can terminate normally?

3 marks

Answer

Sign in to view the complete answer paper.

g

Explain half-duplex and full-duplex pipes.

2 marks

Answer

Sign in to view the complete answer paper.

h

Can unrelated processes exchange data with unnamed pipes? Explain.

3 marks

Answer

Sign in to view the complete answer paper.

i

Give the generic socket address structure and explain the fields.

2 marks

Answer

Sign in to view the complete answer paper.

j

Give the functions for forward/reverse lookup for hostname/service.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

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

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the workflow and the basic syntax of awk.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Write sed commands for the following:

  • Replace every occurrence of Nick with John in report.txt.
  • Show only lines 12-18 of file.txt.
  • Delete all leading blank lines of file.txt.
  • Reverse characters of lines
  • Joining lines
5 marks

Answer

Sign in to view the complete answer paper.

b

Give an overview of file permissions in linux.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

What are the various file types in a UNIX system? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the following functions of file system in UNIX: link, unlink, remove.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Explain the following functions associated with directories: opendir, rewinddir, seekdir.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is a symbolic link? Give functions for creating and reading symbolic links.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Explain the semantics of fork and vfork functions.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the relationship of seven exec functions.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Give examples of C programs that result in zombie and orphan processes.

5 marks

Answer

Sign in to view the complete answer paper.

b

Give the syntax and explain the semantics of kill and raise functions.

5 marks

Answer

Sign in to view the complete answer paper.

8

Give an overview of the implementation of message queues in UNIX.

10 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Demonstrate with an example implementation of client server model using FIFOs.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to illustrate file locking using semaphores.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Give the syntax and semantics of socket function for creating a socket.

5 marks

Answer

Sign in to view the complete answer paper.

b

Make comparison of features of various forms of IPC.

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

Give an overview of the implementation of shared memory in UNIX.

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 JNTU for B.Tech IT III I, November/December - 2017, 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...