Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad B.Tech IV LINUX PROGRAMMING Previous Question Paper (September - 2022 - R16)

B.Tech | IV | II | R16 | September - 2022

Answer PaperPaper Code: 138GHMaximum Marks: 75Time: 3 Hours

Answer any five questions

All questions carry equal marks

Main

115 marks
a

List the important features of Linux operating system.

7 marks

Answer

Linux is a powerful, open-source operating system known for its stability and flexibility. Key features include:

  • Open Source: The source code is freely available, allowing users to modify and distribute it.
  • Multi-user capability: Multiple users can access system resources simultaneously without interfering with each other.
  • Multi-tasking: Linux supports running multiple processes or applications concurrently.
  • Security: It provides robust security through user authentication, file permissions, and encryption.
  • Hierarchical File System: Linux organizes files in a tree-like structure starting from the root directory (/).
  • Shell: It provides a command-line interface (shell) that acts as an interpreter between the user and the kernel.
  • Portability: Linux can run on various hardware platforms, from embedded systems to supercomputers.
b

Explain various file handling utilities with syntax and examples.

8 marks

Answer

File handling utilities in Linux are essential for managing data and system files. Common utilities include:

  • cat: Used to display, create, or concatenate files.
    Syntax: cat [filename]
    Example: cat file1.txt displays content of file1.txt.
  • cp: Used to copy files or directories.
    Syntax: cp [source] [destination]
    Example: cp file1.txt file2.txt creates a copy of file1 named file2.
  • mv: Used to move or rename files and directories.
    Syntax: mv [source] [destination]
    Example: mv oldname.txt newname.txt renames the file.
  • rm: Used to remove or delete files.
    Syntax: rm [filename]
    Example: rm temp.txt deletes temp.txt.
  • head / tail: Used to display the beginning or end of a file.
    Syntax: head -n [lines] [filename]
    Example: tail -n 5 log.txt shows the last 5 lines of log.txt.
  • chmod: Used to change file access permissions.
    Syntax: chmod [mode] [filename]
    Example: chmod 755 script.sh sets read, write, and execute permissions.
215 marks
a

What is a shell? Give the list of shell responsibilities.

7 marks

Answer

Sign in to view the complete answer paper.

b

Write a shell script to display the multiplication table.

8 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

Give an overview on Linux file system structure.

7 marks

Answer

Sign in to view the complete answer paper.

b

Give a detailed note on system calls for file input/output operations in Linux.

8 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

Explain Linux’ kernel support for files.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain the systems calls for creating, removing and changing directories with the help of syntax and examples.

8 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Distinguish between threads and processes.

7 marks

Answer

Sign in to view the complete answer paper.

b

Give an overview of signal generation and handling in Linux.

8 marks

Answer

Sign in to view the complete answer paper.

6

Give a detailed note on system calls for process management in Linux.

15 marks

Answer

Sign in to view the complete answer paper.

7

Explain how inter process communication is handled through pipes in Linux using an example.

15 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Explain bind and connect system calls.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain the general scheme of using shared memory.

8 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 EEE IV II, September - 2022, R16.

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