JNTU

JNTU B.Tech III LINUX PROGRAMMING Previous Question Paper (August - 2022 - R13)

B.Tech | III | I | R13 | August - 2022

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

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

Explain in detail about Process Utilities.

7 marks

Answer

Process utilities are command-line tools used to monitor, manage, and control processes running on a Linux system. Key utilities include:

  1. ps: Displays a snapshot of current processes. Common options include -ef for a full listing or aux for user-oriented output.
  2. top: Provides a dynamic, real-time view of the system, showing CPU usage, memory consumption, and active processes sorted by resource usage.
  3. kill: Sends a signal (default is SIGTERM) to a process identified by its Process ID (PID) to terminate it.
  4. nice and renice: Used to adjust the scheduling priority of a process, influencing how much CPU time it receives.
  5. jobs, fg, and bg: Used for job control in the shell, allowing users to list background tasks, bring them to the foreground, or resume them in the background.
  6. pstree: Displays running processes as a tree structure, illustrating parent-child relationships.
b

Discuss the pipes and Redirection.

8 marks

Answer

Pipes and redirection are fundamental mechanisms for inter-process communication and input/output control in Linux.

Redirection allows a user to change the standard input (stdin), standard output (stdout), or standard error (stderr) of a command. Using operators like

>
(overwrite),
>>
(append), and
<
(input redirection), output can be sent to files instead of the terminal, or input can be read from files instead of the keyboard.

Pipes use the

|
operator to connect the stdout of one command directly to the stdin of another. This enables the creation of complex command chains where the output of a producer process is processed by a consumer process without requiring temporary files. For example,
ls | grep 'txt'
passes the file list to the grep utility to filter for text files. Pipes are essential for modular programming in the shell, allowing simple utilities to be combined to perform sophisticated data processing tasks.

215 marks
a

Explain the following commands: i) PING Command. ii) TRACEROUTE Command.

8 marks

Answer

Sign in to view the complete answer paper.

b

Describe how an interrupt is processed.

7 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Illustrate the kernel support for files.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the opendir, readdir, closedir, and rewinddir functions.

10 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Discuss the system calls for file I/O operations.

8 marks

Answer

Sign in to view the complete answer paper.

b

Describe the chmod and fchmod.

7 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Explain about the fork and vfork system call.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain about Zombie process.

7 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Discuss the getenv, setenv, Kernel support for the process.

8 marks

Answer

Sign in to view the complete answer paper.

b

Describe the Signal generation and handling.

7 marks

Answer

Sign in to view the complete answer paper.

7

Explain the IPC between processes on a single computer system.

15 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Elaborate on the APIs for shared memory.

8 marks

Answer

Sign in to view the complete answer paper.

b

Illustrate the client server program by using Multiple simultaneous clients.

7 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of LINUX PROGRAMMING from JNTU for B.Tech IT III I, August - 2022, 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...