JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III LINUX PROGRAMMING Previous Question Paper (November/December - 2018 - R13)

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

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

Explain the significance of the following commands: i) ls –r ii) ls -R

2 marks

Answer

i) ls -r: Lists the contents of a directory in reverse alphabetical order. ii) ls -R: Lists the contents of a directory recursively, including the contents of all subdirectories.

b

Assuming that a file’s current permissions are rw-r-xr--, specify the chmod expression required to change them to: i) rwxrwxrwx ii) r--r----- iii) --r--r---

3 marks

Answer

i) chmod 777 filename (or chmod a=rwx filename) ii) chmod 440 filename (or chmod u=r,g=r,o= filename) iii) chmod 044 filename (or chmod u=,g=r,o=r filename)

c

What is a symbolic link?

2 marks

Answer

Sign in to view the complete answer paper.

d

Give umask file access permission bits.

3 marks

Answer

Sign in to view the complete answer paper.

e

Distinguish between malloc and calloc in C language.

2 marks

Answer

Sign in to view the complete answer paper.

f

What are the different causes for the abnormal termination of a process?

3 marks

Answer

Sign in to view the complete answer paper.

g

Give the syntax of popen and pclose functions.

2 marks

Answer

Sign in to view the complete answer paper.

h

Distinguish between named and unnamed pipes.

3 marks

Answer

Sign in to view the complete answer paper.

i

What are various socket types?

2 marks

Answer

Sign in to view the complete answer paper.

j

Distinguish between connection-oriented and connection-less protocol.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Write a shell script that displays a list of all files in the current directory to which the user has read, write and execute permissions.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the following networking commands in unix: i) ping ii) traceroute iii) netstat iv) nslookup v) ifconfig

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Write an awk script to find the number of characters, words and lines in a file.

5 marks

Answer

Sign in to view the complete answer paper.

b

Give an overview of sed to manipulate text in UNIX.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Give an overview of the structure of the UNIX file system.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the following functions of file system in UNIX: i) chmod ii) chown iii) truncate.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Give an overview of four stat functions and the information they return.

5 marks

Answer

Sign in to view the complete answer paper.

b

Give the functions for reading directories and explain.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

What are different exec functions in UNIX process control? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

b

Give an overview of process groups and sessions.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Explain UNIX environment variables and the functions for fetching and setting environment variables.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the significance of following signals: i) SIGCHLD ii) SIGINT iii) SIGSYS iv) SIGKILL

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

What are different forms of IPC? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

b

Demonstrate with an example implementation of client-server model using pipes.

5 marks

Answer

Sign in to view the complete answer paper.

OR
9

Give an overview of implementation of semaphores in UNIX.

10 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Give the syntax and semantics of following socket functions: i) bind ii) connect

5 marks

Answer

Sign in to view the complete answer paper.

b

Give the functions for setting and retrieving socket options, and give the list of various socket options.

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

Give the syntax and semantics of the following socket functions: a) send b) sendto c) recv d) recvfrom

10 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of LINUX PROGRAMMING from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech IT III I, November/December - 2018, R13.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in LINUX PROGRAMMING

Loading Question Papers

Fetching data from database...