In this section of Operating System Process Management.it contain Operating System Process Management – Process Creation MCQs (Multiple Choice Questions Answers).All the MCQs (Multiple Choice Question Answers) requires in detain reading of Operating System subject as the hardness level of MCQs have been kept to advanced level.

PRACTICE IT NOW TO SHARPEN YOUR CONCEPT AND KNOWLEDGE

view hide answers

1. Most operating systems (including UNIX, Linux, and Windows) identify processes according to a unique __________

  • program counter
  • process state
  • process number
  • Process Identifier

2. The init process which always has a pid of

  • 0
  • 1
  • 2
  • 3

3. When a process creates a new process, two possibilities for execution exist:
  1. The parent continues to execute concurrently with its children.
  2. The parent Stop to execute concurrently with its children.
  3. The parent waits until some or all of its children have terminated.
  4. The parent do not wait until some or all of its children have terminated.

  • 1 and 2
  • 2 and 3
  • 2 and 4
  • 1 and 3

4. When a process creates a new process,There are also two address-space possibilities for the new process:
  1. The child process is a duplicate of the parent process (it has the same program and data as the parent).
  2. The child process is a Not duplicate of the parent process (it has not have the same program and data as the parent).
  3. The child process has a new program loaded into it.
  4. The child process has a same program loaded into it.

  • 2 and 4
  • 2 and 3
  • 1 and 3
  • 1 and 4

5. The new process consists of a copy of the ____ of the original process. This mechanism allows the parent process to communicate easily with its child process

  • address space
  • process state
  • process number
  • Process Identifier

6. Both processes (the parent and the child) continue execution at the instruction after the fork(), with one difference: the return code for the fork() is ______ for the new (child) process, whereas the _____ process identifier of the child is returned to the parent

  • Negative integer, Zero
  • Zero, Negative integer
  • nonzero integer, Zero
  • Zero, nonzero integer

7. Creating a separate process using the UNIX _______system call.

  • fork
  • init
  • exec
  • wait

8. After a fork() system call, one of the two processes typically uses the _____ system call to replace the process’s memory space with a new program.

  • exit
  • init
  • exec
  • wait

9. The parent can create more children; or, if it has nothing else to do while the child runs, it can issue a ____system call to move itself off the ready queue until the termination of the child

  • exit
  • exit
  • exec
  • wait

10. Processes are created in the Windows API using the ______ function, which is similar to fork() in that a parent creates a new child process.

  • CreateProcess()
  • InitiateProcess()
  • StartProcess()
  • None of the above

11. .A process terminates when it finishes executing its final statement and asks the operating system to delete it by using the ___ system call.

  • wait()
  • exit()
  • forck()
  • exec()

12. A parent may terminate the execution of one of its children for a variety of reasons, Which of the following is true:
  1. The child has exceeded its usage of some of the resources that it has been allocated.
  2. The task assigned to the child is no longer required.
  3. The parent is exiting, and the operating system does not allow a child to continue if its parent terminates.

  • 1 only
  • 1 and 2 only
  • 2 and 3 only
  • all of the above

13. A process that has terminated, but whose parent has not yet called wait(), is known as a ___ process.

  • zombie
  • orphans
  • terminated
  • None of the above

14. if a parent did not invoke wait() and instead terminated, thereby leaving its child processes as it is ,the child process is known as ___

  • zombie
  • orphans
  • terminated
  • None of the above

15. When a process creates a new process using the fork() operation, which of the following states is shared between the parent process and the child process?

  • Stack
  • Heap
  • Shared memory segments
  • None of the above
Share with : Share on Linkedin Share on Twitter Share on WhatsApp Share on Facebook