Linux internals interview questions

Linux internals interview questions
Please friends to contribute questions of company interviews you attended mail us cinterviews.blogspot.com@gmail.com it will be useful for our job search community.www.cinterviews.com appreciates your contribution

1. Pid of init process
a) 0
b) 1
c) 32767
d) none of the above.
Ans : b
2. The process which terminates before the parent process exits becomes
a) Zombie
b) Orphan
c) Child
d) None of the above
Ans : a
3. Return value of fork() system call can be:
a) -1,<0,0 b) -1,>0,0
4. Fork returns _____ to parent process on success
a) 0
b) child process id
c) parent process id
d) none
5. Which niceness value among the following indicate most favorable scheduling?
a) 0
b) 20
c) 5
d) -19
6. Nice Command can be used by an ordinary process to
a) increase the priority of a process
b) decrease the priority of a process
c) increase or decrease the priority of a process
7. Which one of below can be a real time schedule policy?
a) SCHED_FIFO
b) SCHED_SPF
c) SCHED_OTHER
d) SCHED_FILO
8. If the fork() system call returns -1, then it means?
a) No new child process is created
b) The child process is an orphan
c) The child process is in Zombie
9.What is the Parent process id of a deamon process?
10.How do you get parent process identification number?
a) waitpid
b) getpid()
c) getppid()
d) parentid()

Please friends to contribute questions of company interviews you attended mail us cinterviews.blogspot.com@gmail.com it will be useful for our job search community.www.cinterviews.com appreciates your contribution

No comments: