JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Fork interview questions
Fork interview questions
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 5
1. Which of the following system calls does not return control to the calling point, on termination ?
A. fork
B. exec
C. ioctl
D. longjmp
Show Correct Answer
Correct Answer is :
exec
2. The following program: main() { if(fork()>0) sleep(100); } results in the creation of:
A. an orphan process
B. a zombie process
C. a process that executes forever
D. none of the mentioned
Show Correct Answer
Correct Answer is :
a zombie process
3. Which of the following system calls transforms executable binary file into a process ?
A. fork
B. exec
C. ioctl
D. longjmp
Show Correct Answer
Correct Answer is :
exec
4. The following C program : main() { fork();fork();printf("yes"); } prints yes:
A. only once
B. twice
C. four times
D. eight times
Show Correct Answer
Correct Answer is :
four times
5. Which of the following calls never returns an error ?
A. getpid
B. fork
C. ioctl
D. open
Show Correct Answer
Correct Answer is :
getpid
Similar Interview Questions
Search for latest jobs
Find Jobs