JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2023 LINUX PROGRAMMING Previous Question Paper (March/April - 2023 - R17)

MCA | 2023 | IV | R17 | March/April - 2023

Answer PaperPaper Code: 844ABMaximum 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

125 marks
a

How do you build your own command library of programs?

5 marks

Answer

To build a personal command library, follow these steps:

  1. Create a dedicated directory (e.g., ~/bin) to store your executable scripts or compiled binaries.
  2. Write your programs or scripts and save them within this directory.
  3. Ensure the files have execute permissions using the chmod +x filename command.
  4. Add the directory to your PATH environment variable by appending
    export PATH=$PATH:$HOME/bin
    to your .bashrc or .profile file.
  5. Source the configuration file or restart your shell to make the commands globally accessible.
b

What is a file? What are different types of files?

5 marks

Answer

In Linux, a file is a collection of data stored on a storage medium, treated as a stream of bytes. Everything in Linux is represented as a file. The primary types include:

  • Ordinary Files: Contain text, data, or executable code.
  • Directories: Files that contain a list of other file names and their associated inodes.
  • Device Files: Interfaces to hardware devices, categorized as character devices or block devices.
  • Symbolic Links: Pointers or shortcuts to other files.
  • Named Pipes (FIFOs): Used for inter-process communication.
  • Sockets: Used for network communication between processes.
c

Explain various process attributes.

5 marks

Answer

Sign in to view the complete answer paper.

d

What is file locking and record locking?

5 marks

Answer

Sign in to view the complete answer paper.

e

List UNIX API for shared memory.

5 marks

Answer

Sign in to view the complete answer paper.

Part B

2

What is shell script? How does shell support arithmetic operations?

10 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Distinguish between a C program and shell script.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain how debugging of shell scripts is done.

5 marks

Answer

Sign in to view the complete answer paper.

4

List and explain standard I/O functions for files in UNIX.

10 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Distinguish between dup and dup2.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain pattern matching in perl.

5 marks

Answer

Sign in to view the complete answer paper.

6

List and explain various signal functions.

10 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Distinguish between wait() and waitpid().

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain kill(), pause() and abort() system calls.

5 marks

Answer

Sign in to view the complete answer paper.

8

Explain how interprocess communication is achieved through message queues.

10 marks

Answer

Sign in to view the complete answer paper.

OR
9

Explain various locking techniques in UNIX.

10 marks

Answer

Sign in to view the complete answer paper.

10

Explain how file locking can be achieved through semaphores.

10 marks

Answer

Sign in to view the complete answer paper.

OR
11

Explain socket system calls for connection oriented protocol.

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 MCA 2023 IV, March/April - 2023, R17.

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...