Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

UNIX Fundamentals

Time : 45 Min.

Q1. A Buffer cache is used in Unix system to


a) Allocate heap for each process running on the system.
b) Store kernel data structures
c) Minimise the frequency of disk access.
d) All of the above
e) None of the above
Ans : C
Q2. The in-core copy of the inode contains the same information as the disk inode.
a) True
b) False
c) Only when the file is being accesed by a process(es)
d) Only when the file is not being accesed by a process(es)
Ans : B
Q3. The inode list follows which of the following in the file system.
a) Boot Block
b) Super Block
c) File Table
d) Data Block
e) None of the above
Ans : B
Q3. How do you redirect output of Standard error of a program (a.out) to a file ?
a) a.out > temp
b) a.out stderr>temp
c) a.out 1>temp
d) a.out 2>temp
e) None of the above
Ans : D
Q4. Which system call is used for creating an unnamed pipe ?
a) open()
b) mknod()
c) pipe()
e) None of the above.
Ans : C

d) create()

Q5. Can the standard file descriptors be duplicated using the dup() system call ?
a) Yes b) No
c) Only by a process running in kernel mode
d) Only by the superuser
e) None of the above.
Ans : A
Q6. The state of a process are described by which of the following kernel data structures
1. Process Table
2. File descriptor Table
3. U Area
4. Buffer Cache
5. Per process Region Table
a) 1, 2

b)
c)
d)
e)

1, 3
1, 3, 5
All of the above
None of the above

Ans : b
#$ What are the ways of creating a process under Unix ?
a) exec() system call
b) Manually adding entries in the Process table
c) fork() system call
d) All of the above
e) None of the above
Ans : c
#$ Named pipes can be used for
1. Communication among processes that are related
2. Communication among processes that are not related
3. Communication among processes across a network
4.
a)
b)
c)
d)
e)

1, 3
2, 3
1, 2
All of the above
None of the above

#$ semaphore are IPC mechanisms used for


1. Sending messages across processes
2. Syncronisation of process executation
3. Sending exit code from parent process to child process
4. All of the above
5. None of the above
.
#$ Socket functions can support both IP4 and IP6 protocols
a) True
b) False
And : a)
#$ Kernel Data Structures are usually implemented as :
a) Dynamically allocated lists
b) Fixed size tables
c) Fixed size tables + dynamically allocated lists

Ans: b
#$ Process can go to sleep while :
a) Executing in kernel mode only
b) Executing in user mode only
c) Either in kernel mode or user mode
Ans : a

You might also like