Jawaharlal Nehru Technological University Hyderabad
Jawaharlal Nehru Technological University Hyderabad B.Tech III Year LINUX PROGRAMMING Previous Question Paper (May - 2018 - R15)
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.
PART - A
What is the importance of /tmp and /etc directories?
Answer
The /etc directory contains all system-wide configuration files for the operating system and installed applications. The /tmp directory is used for storing temporary files created by the system and users, which are typically cleared upon reboot or periodically by system cleanup utilities.
List out the features of BASH shell.
Answer
- Supports command-line editing and history (using arrow keys).
- Provides powerful scripting capabilities with control structures like if, for, and while.
- Includes job control features to manage background and foreground processes.
- Supports command aliasing and shell functions.
- Offers extensive filename completion using the Tab key.
What is a sticky bit? Why is it required?
Answer
Sign in to view the complete answer paper.
Write down the differences between hard linking and soft linking.
Answer
Sign in to view the complete answer paper.
Give the similarities and dissimilarities between parent and its child processes.
Answer
Sign in to view the complete answer paper.
What is a zombie process and explain how it may manifest itself?
Answer
Sign in to view the complete answer paper.
What are the advantages and disadvantages of pipes?
Answer
Sign in to view the complete answer paper.
Illustrate popen( ) system call with an example.
Answer
Sign in to view the complete answer paper.
Differentiate between a connection oriented protocol and connection less protocol.
Answer
Sign in to view the complete answer paper.
Discuss the process of “destroying a shared memory segment”.
Answer
Sign in to view the complete answer paper.
PART - B
Give the differences between grep, fgrep and egrep utilities.
Answer
Sign in to view the complete answer paper.
Explain briefly about different blocks in LINUX file system.
Answer
Sign in to view the complete answer paper.
What is the significance of single quotes and double quotes? Explain various conditional expressions available in the Shell programming
Answer
Sign in to view the complete answer paper.
Give the syntax of ‘for’ and ‘case’ structures in Bash Shell and illustrate them with an example.
Answer
Sign in to view the complete answer paper.
Discuss the relative merits and demerits of lseek( ) system call.
Answer
Sign in to view the complete answer paper.
What are the standard I/O Streams for opening and closing a file? Explain briefly.
Answer
Sign in to view the complete answer paper.
Explain the following system calls with illustrations:
a) link( ) b) chmod( ) c) getcwd( )
Answer
Sign in to view the complete answer paper.
What are process identifiers? Explain the commands for getting different IDs of a calling process.
Answer
Sign in to view the complete answer paper.
Describe the need and usage of the following system calls:
a) kill( ) b) raise( ) c) alarm( )
Answer
Sign in to view the complete answer paper.
Compare the IPC functionality provided by message queues and fifos.
Answer
Sign in to view the complete answer paper.
Discuss the relative merits and demerits of system V IPC Mechanisms.
Answer
Sign in to view the complete answer paper.
List and explain the various data structures and system calls that are associated with semaphores.
Answer
Sign in to view the complete answer paper.
Explain how TCP maintains queue for listening socket.
Answer
Sign in to view the complete answer paper.
Describe how to build a linked list of data objects in a shared memory segment with a sample program.
Answer
Sign in to view the complete answer paper.
Describe the functionality of sockets in implementing remote system communication and explain various APIs associated with it.
Answer
Sign in to view the complete answer paper.