Monday, 6 August 2012

UNIX & SHELL PROGRAMMING B.Tech previous year qus paper 2nd year (IV sem)


UTTARAKHAND TECHNICAL UNIVERSITY
B.TECH (SEM. IV) 
2012
SUB: UNIX & SHELL PROGRAMMING


time : 3hr] 
Total marks :100
Note: Attempt all questions. Be precise in your answer.


SECTION A
Q1:- Attempt any four of the following :
4x5=20

  1. Describe how UNIX is more secured than other operating systems.
  2. How many types of editors we can use in UNIX operating system. What are the main functions of vi editors.
  3. Explain the purpose of include files in UNIX.
  4. Explain the role of file descriptors, file table and Incode table in Unix File System.
  5. Draw the block diagram of Unix system kernel. Explain various components.
SECTION B
Q2:- Attempt any four of the following :
4x5=20
  1. Write a short note on internal and external commands of UNIX.
  2. What does kill $! Do? Explain with an example.
  3. Explain the task of following commands.
    (a) tty
    (b) gzip
    (c) cat
    (d) banner
    (e) cmp
  4. You are ediac in vi, and want to make a temporary exit to the shell. How will you do that and then come back to vi again?
  5. Your printer ha stopped working, and you want to be sure whether the printing daemon is working. How will you ensure that?
SECTION C
 Q3:- Attempt any four of the following :
4x5=20
  1. Determine what the built-in shell variables are for your account. Which ones are exported?
  2. Explain:
    (a) Shell metacharacters
    (b) Shell variables
  3. Write a shell script that prints the current date, your user name and the name of your login shell.
  4. Write a shell script that creates three background processors, waits for them display a simple message.
  5. Explain the various types of UNIX shell and their characteristics.
SECTION D
Q5:- Attempt any two of the following :
10×2=20
  1. (a) List the sequence of events that occur when one turn on the computer.(b) What is the various security features offered in UNIX? Explain any two in detail.
  2. (a) What is the difference between shutdown and halt.(b) Explain mounting of a file system in UNIX. When is unmounting a file system not possible?
  3. Expain the utility provided by the UNIX for managing and tracking to files. Suppose we want to check a C program for a syntax and data type errors. Which UNIX utility can be used to display message that point out, possible problems? Explain the procedures to use this utility.
SECTION E
Q5:- Attempt any two of the following :
10x2=20
  1. Write short note on language development tools YACC, LEX, M4 in UNIX.
  2. Describe the following tools troff, nroff, tbi, Dbx, and Adb
  3. Describe Library functions and system calls with an example.
------------------------------------
GOOD LUCK!!!!

No comments: