Jawaharlal Nehru Technological University Hyderabad
Jawaharlal Nehru Technological University Hyderabad B.Tech III LINUX PROGRAMMING Previous Question Paper (May/June - 2019 - R15)
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. Each question carries 10 marks.
Part A
What is a shell variable?
Answer
A shell variable is a name associated with a value, used by the shell to store data such as configuration settings, path information, or temporary script data. It is defined using the syntax VARIABLE=value and accessed by prefixing the name with a $ sign.
Briefly explain grep command with all options.
Answer
The grep command is used to search for patterns within files. Common options include -i (ignore case), -v (invert match to show non-matching lines), -r (recursive search in directories), -l (list filenames only), -n (display line numbers), and -c (count matching lines).
Explain briefly about Inode pointer structure.
Answer
Sign in to view the complete answer paper.
What is system call?
Answer
Sign in to view the complete answer paper.
What are reliable signals?
Answer
Sign in to view the complete answer paper.
What is fork and vfork?
Answer
Sign in to view the complete answer paper.
What is inter process communication? Explain.
Answer
Sign in to view the complete answer paper.
What is message queue?
Answer
Sign in to view the complete answer paper.
What is shared memory?
Answer
Sign in to view the complete answer paper.
Difference between stream sockets and datagram sockets.
Answer
Sign in to view the complete answer paper.
Part B
Describe the relationship between the kernel, shell and the user, with the help of a diagram.
Answer
Sign in to view the complete answer paper.
What is command substitution? What is the token used with command substitution?
Answer
Sign in to view the complete answer paper.
Explain the following filters with examples: i) Head ii) tail iii) cut iv) more
Answer
Sign in to view the complete answer paper.
Discuss the salient feature of the LINUX operating system?
Answer
Sign in to view the complete answer paper.
Explain the Linux file system and its structure in detail.
Answer
Sign in to view the complete answer paper.
Write short notes on hard link and symbolic links.
Answer
Sign in to view the complete answer paper.
Write a program to illustrate file locking using fcntl function.
Answer
Sign in to view the complete answer paper.
List the Linux file attributes with their meanings.
Answer
Sign in to view the complete answer paper.
Explain the following with example: i) Kill and raise functions ii) abort and sleep functions
Answer
Sign in to view the complete answer paper.
What is a process? Explain about Zombie process.
Answer
Sign in to view the complete answer paper.
Explain about kernel support for signals. Explain about signal functions.
Answer
Sign in to view the complete answer paper.
What is an Orphan process? Explain reasons for Orphan process.
Answer
Sign in to view the complete answer paper.
Explain with an example client server communication using a FIFO.
Answer
Sign in to view the complete answer paper.
Explain the popen and pclose function to create pipe.
Answer
Sign in to view the complete answer paper.
What is semaphore? Explain the procedure to use semaphores.
Answer
Sign in to view the complete answer paper.
Draw the structure and explain about the “semaphores structure in the kernel”.
Answer
Sign in to view the complete answer paper.
Write a program on single server-client connection.
Answer
Sign in to view the complete answer paper.
What are the reserved ports in Berkely sockets? Explain.
Answer
Sign in to view the complete answer paper.
Explain a stream socket with a illustrative example for client/server program.
Answer
Sign in to view the complete answer paper.
Explain about shared area with kernel support in Linux.
Answer
Sign in to view the complete answer paper.