Threads Fork Exec — Test 1
Page 1 of 1
Question 1
Which of the following system calls does not return control to the calling point, on termination?
0
System Administrator 2026
Question 2
The following program results in the creation of? main() { if(fork()>0) sleep(100); }
0
System Administrator 2026
Question 3
Which of the following system calls transforms executable binary file into a process?
0
System Administrator 2026
Question 4
How many times the following C program prints yes? main() { fork();fork();printf(""yes""); }
0
System Administrator 2026
Question 5
Which of the following calls never returns an error?
0
System Administrator 2026
Question 6
A fork system call will fail if ______________
0
System Administrator 2026
Question 7
If a thread invokes the exec system call ____________
0
System Administrator 2026
Question 8
If exec is called immediately after forking ____________
0
System Administrator 2026
Question 9
If a process does not call exec after forking ____________
0
System Administrator 2026