JNTU
JNTU B.Tech III LINUX PROGRAMMING Previous Question Paper (November/December - 2017 - R13)
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. Each question carries 10 marks and may have a, b, c as sub questions.
Part A
Distinguish between absolute and relative pathname.
Answer
An absolute pathname begins with the root directory (/) and specifies the complete path to a file or directory. A relative pathname specifies the location of a file or directory starting from the current working directory, without a leading slash.
Explain how files can be archived and extracted in Linux.
Answer
Files are archived using the tar (Tape Archive) utility. To create an archive, the command
What is a sticky bit?
Answer
Sign in to view the complete answer paper.
What is an inode?
Answer
Sign in to view the complete answer paper.
Give the list of functions that return various process identifiers.
Answer
Sign in to view the complete answer paper.
What are the different ways in which a process can terminate normally?
Answer
Sign in to view the complete answer paper.
Explain half-duplex and full-duplex pipes.
Answer
Sign in to view the complete answer paper.
Can unrelated processes exchange data with unnamed pipes? Explain.
Answer
Sign in to view the complete answer paper.
Give the generic socket address structure and explain the fields.
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
Write a shell script to find the factorial of a given number.
Answer
Sign in to view the complete answer paper.
Explain the workflow and the basic syntax of awk.
Answer
Sign in to view the complete answer paper.
Write sed commands for the following:
- Replace every occurrence of Nick with John in report.txt.
- Show only lines 12-18 of file.txt.
- Delete all leading blank lines of file.txt.
- Reverse characters of lines
- Joining lines
Answer
Sign in to view the complete answer paper.
Give an overview of file permissions in linux.
Answer
Sign in to view the complete answer paper.
What are the various file types in a UNIX system? Explain.
Answer
Sign in to view the complete answer paper.
Explain the following functions of file system in UNIX: link, unlink, remove.
Answer
Sign in to view the complete answer paper.
Explain the following functions associated with directories: opendir, rewinddir, seekdir.
Answer
Sign in to view the complete answer paper.
What is a symbolic link? Give functions for creating and reading symbolic links.
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.
Explain the relationship of seven exec functions.
Answer
Sign in to view the complete answer paper.
Give examples of C programs that result in zombie and orphan processes.
Answer
Sign in to view the complete answer paper.
Give the syntax and explain the semantics of kill and raise functions.
Answer
Sign in to view the complete answer paper.
Give an overview of the implementation of message queues in UNIX.
Answer
Sign in to view the complete answer paper.
Demonstrate with an example implementation of client server model using FIFOs.
Answer
Sign in to view the complete answer paper.
Write a program to illustrate file locking using semaphores.
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.
Make comparison of features of various forms of IPC.
Answer
Sign in to view the complete answer paper.
Give an overview of the implementation of shared memory in UNIX.
Answer
Sign in to view the complete answer paper.