JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2018 LINUX PROGRAMMING Previous Question Paper (January - 2018 - R15)

MCA | 2018 | IV | R15 | January - 2018

Answer PaperPaper Code: 824ABMaximum Marks: 75Time: 3hrs

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.

PART - A

125 marks
a

Describe the special parameters used by shell.

5 marks

Answer

Special parameters in the shell are internal variables that provide information about the script or command execution. Key special parameters include:

  • $0: Expands to the name of the shell or shell script.
  • $n: Expands to the nth positional parameter (where n is a digit).
  • $#: Expands to the number of positional parameters.
  • $*: Expands to all positional parameters starting from one.
  • $@: Expands to all positional parameters, treating each as a separate word.
  • $?: Expands to the exit status of the most recently executed foreground pipeline.
  • $$: Expands to the process ID of the shell.
  • $!: Expands to the process ID of the most recently executed background command.
b

What are hard links? Give their advantages and disadvantages.

5 marks

Answer

A hard link is a directory entry that associates a filename with an existing inode on the file system. It essentially creates an additional name for the same data on the disk.

Advantages: Hard links are efficient as they do not consume extra disk space for data, and the file remains accessible as long as at least one hard link exists, even if the original filename is deleted.

Disadvantages: They cannot span across different file systems or partitions, and they cannot be created for directories to prevent circular references in the file system structure.

c

Discuss the role of kill and raise functions in signal generation.

5 marks

Answer

Sign in to view the complete answer paper.

d

Write a program to implement the creation of a pipe.

5 marks

Answer

Sign in to view the complete answer paper.

e

What system calls are used to send and receive the data through sockets?

5 marks

Answer

Sign in to view the complete answer paper.

PART - B

2

What is sed? Explain addressing in sed with suitable examples.

10 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

What is the exit status of a command and where is it stored?

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a shell script to display the current users of the system who have logged in for more than half an hour.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

What is an i-node? Explain the process of conversion of file path name to an i-node.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain fseek, fopen, fclose system call in detail.

5 marks

Answer

Sign in to view the complete answer paper.

OR
5

What is a directory? List and explain various directory maintenance systems calls that are present in unix.

10 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

What is a zombie process? Give its significance.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to implement the sleep function.

5 marks

Answer

Sign in to view the complete answer paper.

OR
7

Explain the role of the following system calls with respect to process: a) fork() b) Wait() c) Exec() d) waitpid e) vfork

10 marks

Answer

Sign in to view the complete answer paper.

8

How to achieve the inter process communication by using FIFOs? Explain with some code snippets.

10 marks

Answer

Sign in to view the complete answer paper.

OR
9

What is Semaphore? Explain how you would use semaphore system calls to solve critical section problems.

10 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Describe the role of port numbers with respect to sockets.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain Byte-Ordering, address format and address lookup in Sockets.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

What is a socket? Explain the socket system call along with the parameters present in it.

5 marks

Answer

Sign in to view the complete answer paper.

b

Which system call is used to create shared memory segment and explain it.

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 MCA 2018 IV, January - 2018, R15.

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

Other papers in LINUX PROGRAMMING

Loading Question Papers

Fetching data from database...