Computer Science 322 Quiz 3 Name _____________________ 1. The value pushed on the stack JUST BEFORE an OS system call interrupt is made in Linux is: a. The last parameter to b. The first parameter to be passed to the OS be passed to the OS c. The ID # of the system d. The PID of the process call being requested. making the system call. 2. When a Unix process forks() the child process begins execution a. At the line of code just beyond b. At the start of the program the call to fork() containing the fork() c. At the first line of the d. At the start of the C function executable program specified specified in the fork() in the fork() call call. 3. The data structure used to represent the dynamic structure in process management is the: a. Stack b. Linked list 4. Consider the following program: main() { int x = 5; x = 12; rc = fork(); if (rc > 0) |------> else { | { x = 6; | sleep(1); | x = 7; printf("%d\n", x); | sleep(10); | printf("%d\n", x); } --- ----------------| } a. What numeric value will be printed by the parent? b. What numeric value will be printed by the child? 5. The value returned a successful call to the open() function is: a. a pointer to a FILE * b. A pointer to the name structure of the file that was opened c. a small positive d. 0