Friday, November 20, 2009

UNIX PROGRAMMING ONLINE BITS

Code No: 05311502 Set No. 1
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
IV B.Tech. I Sem., II Mid-Term Examinations, Oct./Nov. – 2009
UNIX PROGRAMMING
Objective Exam
I. Choose the correct alternative:
1. Which one of the following compete for system resources [ ]
(a) H/w (b) process (c) Kernel (d) None
2. A signal is an_______ event which is delivered to a process [ ]
(a) asynchronous (b) synchronous (c) exit (d) None
3. Which of the following are the methods of IPC [ ]
(a) Pipes and FIFOs (b) RPC (c) Semaphores (d) All
4. How to define a lock (The contents of Lock) [ ]
(a) by a file name (b) the starting byte (c) the number of bytes (d) All
5. Different programs may be run during the life of a process by calling [ ]
(a) exec (b) exit (c) init (d) None
6. Process Control Information’s U area typically mapped to a [ ]
(a) fixed address (b) variable (c) pointer (d) None
7. Which one of the following function is used to create device files [ ]
(a) mknod (b) mkfifo (c) chmod (d) None
8. Which of the following Allows references across physical file systems and supports inter-machine linkage. [ ]
(a) Symbolic links (b) pipes (c) system calls (d) None
9. _____________is a process may never be removed from the semaphore queue in which it is suspended. [ ]
(a) definite blocking (b) semaphore (c) deadlock (d) starvation
10. If we want to send signal to process pid,then what will be the value of pid [ ]
(a) <0 (b) >0 (c) ==0 (d) None
II. Fill in the blanks:
11. Symbolic Links Implemented as a ____that contains a pathname.
12. KMA means __________________.
Cont….2

A
Code No: 05311502 -2- Set No. 1
13. __________organization separate address space.
14. __________ maintains a list of free physical pages.
15. Mutually exclusive access to the critical section is provided by _____.
16. __________________ contains information about the File.
17. Processes read and write messages to arbitrary ____________.
18. Increasing locality of reference, to minimize seek latency is the Goal of _______.
19. KernelMemoryAllocation must be ____ since extensively used.
20. Kernel allocates contiguous space on the swap device without ____________.
-oOo-
Code No: 05311502 Set No. 2
I. Choose the correct alternative:
1. How to define a lock (The contents of Lock) [ ]
(a) by a file name (b) the starting byte (c) the number of bytes (d) All
2. Different programs may be run during the life of a process by calling [ ]
(a) exec (b) exit (c) init (d) None
3. Process Control Information’s U area typically mapped to a [ ]
(a) fixed address (b) variable (c) pointer (d) None
4. Which one of the following function is used to create device files [ ]
(a) mknod (b) mkfifo (c) chmod (d) None
5. Which of the following Allows references across physical file systems and supports inter-machine linkage. [ ]
(a) Symbolic links (b) pipes (c) system calls (d) None
6. _____________is a process may never be removed from the semaphore queue in which it is suspended. [ ]
(a) definite blocking (b) semaphore (c) deadlock (d) starvation
7. If we want to send signal to process pid,then what will be the value of pid [ ]
(a) <0 (b) >0 (c) ==0 (d) None
8. Which one of the following compete for system resources [ ]
(a) H/w (b) process (c) Kernel (d) None
9. A signal is an_______ event which is delivered to a process [ ]
(a) asynchronous (b) synchronous (c) exit (d) None
10. Which of the following are the methods of IPC [ ]
(a) Pipes and FIFOs (b) RPC (c) Semaphores (d) All
II. Fill in the blanks:
11. __________ maintains a list of free physical pages.
Cont….2

A
Code No: 05311502 -2- Set No. 2
12. Mutually exclusive access to the critical section is provided by _____.
13. __________________ contains information about the File.
14. Processes read and write messages to arbitrary ____________.
15. Increasing locality of reference, to minimize seek latency is the Goal of _______.
16. KernelMemoryAllocation must be ____ since extensively used.
17. Kernel allocates contiguous space on the swap device without ____________.
18. Symbolic Links Implemented as a ____that contains a pathname.
19. KMA means __________________.
20. __________organization separate address space.
-oOo-
Code No: 05311502 Set No. 3
I. Choose the correct alternative:
1. Process Control Information’s U area typically mapped to a [ ]
(a) fixed address (b) variable (c) pointer (d) None
2. Which one of the following function is used to create device files [ ]
(a) mknod (b) mkfifo (c) chmod (d) None
3. Which of the following Allows references across physical file systems and supports inter-machine linkage. [ ]
(a) Symbolic links (b) pipes (c) system calls (d) None
4. _____________is a process may never be removed from the semaphore queue in which it is suspended. [ ]
(a) definite blocking (b) semaphore (c) deadlock (d) starvation
5. If we want to send signal to process pid,then what will be the value of pid [ ]
(a) <0 (b) >0 (c) ==0 (d) None
6. Which one of the following compete for system resources [ ]
(a) H/w (b) process (c) Kernel (d) None
7. A signal is an_______ event which is delivered to a process [ ]
(a) asynchronous (b) synchronous (c) exit (d) None
8. Which of the following are the methods of IPC [ ]
(a) Pipes and FIFOs (b) RPC (c) Semaphores (d) All
9. How to define a lock (The contents of Lock) [ ]
(a) by a file name (b) the starting byte (c) the number of bytes (d) All
10. Different programs may be run during the life of a process by calling [ ]
(a) exec (b) exit (c) init (d) None
II. Fill in the blanks:
11. __________________ contains information about the File.
Cont….2

A
Code No: 05311502 -2- Set No. 3
12. Processes read and write messages to arbitrary ____________.
13. Increasing locality of reference, to minimize seek latency is the Goal of _______.
14. KernelMemoryAllocation must be ____ since extensively used.
15. Kernel allocates contiguous space on the swap device without ____________.
16. Symbolic Links Implemented as a ____that contains a pathname.
17. KMA means __________________.
18. __________organization separate address space.
19. __________ maintains a list of free physical pages.
20. Mutually exclusive access to the critical section is provided by _____.
-oOo-
Code No: 05311502 Set No. 4
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
IV B.Tech. I Sem., II Mid-Term Examinations, Oct./Nov. – 2009
UNIX PROGRAMMING
Objective Exam
Name: ______________________________ Hall Ticket No.
Answer All Questions. All Questions Carry Equal Marks.Time: 20 Min. Marks: 20.
I. Choose the correct alternative:
1. Which of the following Allows references across physical file systems and supports inter-machine linkage. [ ]
(a) Symbolic links (b) pipes (c) system calls (d) None
2. _____________is a process may never be removed from the semaphore queue in which it is suspended. [ ]
(a) definite blocking (b) semaphore (c) deadlock (d) starvation
3. If we want to send signal to process pid,then what will be the value of pid [ ]
(a) <0 (b) >0 (c) ==0 (d) None
4. Which one of the following compete for system resources [ ]
(a) H/w (b) process (c) Kernel (d) None
5. A signal is an_______ event which is delivered to a process [ ]
(a) asynchronous (b) synchronous (c) exit (d) None
6. Which of the following are the methods of IPC [ ]
(a) Pipes and FIFOs (b) RPC (c) Semaphores (d) All
7. How to define a lock (The contents of Lock) [ ]
(a) by a file name (b) the starting byte (c) the number of bytes (d) All
8. Different programs may be run during the life of a process by calling [ ]
(a) exec (b) exit (c) init (d) None
9. Process Control Information’s U area typically mapped to a [ ]
(a) fixed address (b) variable (c) pointer (d) None
10. Which one of the following function is used to create device files [ ]
(a) mknod (b) mkfifo (c) chmod (d) None
II. Fill in the blanks:
11. Increasing locality of reference, to minimize seek latency is the Goal of _______.
12. KernelMemoryAllocation must be ____ since extensively used.
Cont….2

A
Code No: 05311502 -2- Set No. 4
13. Kernel allocates contiguous space on the swap device without ____________.
14. Symbolic Links Implemented as a ____that contains a pathname.
15. KMA means __________________.
16. __________organization separate address space.
17. __________ maintains a list of free physical pages.
18. Mutually exclusive access to the critical section is provided by _____.
19. __________________ contains information about the File.
20. Processes read and write messages to arbitrary ____________.
-oOo-

No comments: