JNTU
JNTU B.Tech III LINUX PROGRAMMING Previous Question Paper (January/February - 2023 - R13)
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
What do you understand by command substitution?
Answer
Command substitution allows the output of a command to be replaced in the place of the command itself. It is performed by enclosing the command in backticks (`) or using the syntax $(command).
Name the different variables of AWK.
Answer
The common AWK variables include: FS (Field Separator), RS (Record Separator), NF (Number of Fields), NR (Number of Records), FILENAME (current file name), OFS (Output Field Separator), and ORS (Output Record Separator).
What is a Sticky bit? Why is it required?
Answer
Sign in to view the complete answer paper.
Give the internal representation of a file in UNIX.
Answer
Sign in to view the complete answer paper.
Differentiate Threads and Processes.
Answer
Sign in to view the complete answer paper.
Define Signal function.
Answer
Sign in to view the complete answer paper.
What is an IPC?
Answer
Sign in to view the complete answer paper.
What are the Named Pipes?
Answer
Sign in to view the complete answer paper.
List the APIs for Shared Memory.
Answer
Sign in to view the complete answer paper.
Give the functions for Forward/Reverse Lookup for Hostname/Service.
Answer
Sign in to view the complete answer paper.
Part B
Explain about various Text Processing Utilities.
Answer
Sign in to view the complete answer paper.
Discuss about Interrupt Processing in Bourne shell.
Answer
Sign in to view the complete answer paper.
What is a Filter in UNIX? Discuss about filters applicable for concatenating and comparing Files.
Answer
Sign in to view the complete answer paper.
List and explain about any five metacharacters of UNIX.
Answer
Sign in to view the complete answer paper.
Illustrate three functions in UNIX Stat().
Answer
Sign in to view the complete answer paper.
Distinguish between Soft link and Hard link with examples.
Answer
Sign in to view the complete answer paper.
Discuss about Advisory locking and Mandatory locking with suitable examples.
Answer
Sign in to view the complete answer paper.
Write the syntax and working of the following functions: i) mkdir() ii) rmdir() iii) chdir() iv) getcwd()
Answer
Sign in to view the complete answer paper.
What is an Orphan Process? Illustrate with an examples program.
Answer
Sign in to view the complete answer paper.
Discuss in brief about Kernel support for Signals.
Answer
Sign in to view the complete answer paper.
Explain the semantics of fork() and vfork() functions.
Answer
Sign in to view the complete answer paper.
Demonstrate the usage of alarm() and pause() system calls.
Answer
Sign in to view the complete answer paper.
Discuss popen() and pclose() functions with relevant example codes.
Answer
Sign in to view the complete answer paper.
With an example, explain the process of writing Messages onto a Queue.
Answer
Sign in to view the complete answer paper.
Compare and contrast between Message Queues and Pipes.
Answer
Sign in to view the complete answer paper.
Draw and explain the Kernel Data Structure for a Semaphore set.
Answer
Sign in to view the complete answer paper.
How to control a Shared Memory segment? Explain.
Answer
Sign in to view the complete answer paper.
Discuss about send() and recv() system calls.
Answer
Sign in to view the complete answer paper.
Explain with a program how to copy file data from server to client using Shared Memory.
Answer
Sign in to view the complete answer paper.
Give the syntax and semantics of socket() function for creating a Socket.
Answer
Sign in to view the complete answer paper.