Operating System MCQ (Multiple Choice Questions and Answers)

21. In Unix, Which system call creates the new process?

  1. create
  2. fork
  3. new
  4. None of the mentioned

Answer : B
Explanation: In UNIX, a new process is created by fork() system call. fork() system call returns a process ID which is generally the process id of the child process created. So, option B is correct.

22. A co-processor

  1. Is relatively easy to support in software
  2. Is quite common in modern computer
  3. Causes all processor to function equally
  4. Works with any application

Answer : A
Explanation: A co-processor is relatively easy to support in the softwares. A co-processor is a computer processor used to supplement the functions of the primary processor (the CPU). The operations performed by the co-processor may be floating point arithmetic, graphics, signal processing, string processing, cryptography or I/O Interfacing with peripheral devices. So, option A is correct.

23. What is the ready state of a process?

  1. When process is unable to run until some task has been completed
  2. When process is scheduled to run after some execution
  3. When process is using the CPU
  4. None of the mentioned

Answer : B
Explanation: None

24. Which of the following is an example of a spooled device?

  1. A graphic display device
  2. A line printer used to print the output of a number of jobs
  3. A secondary storage device in a virtual memory system
  4. A terminal used to enter input data to a running program

Answer : B
Explanation: None

25. Which of the following memory unit that processor can access more rapidly

  1. Main Memory
  2. Virtual Memory
  3. Cache memory
  4. Read Only Memory

Answer : C
Explanation: None

26. Process is

  1. Program in High level language kept on disk
  2. Contents of main memory
  3. A job in secondary memory
  4. A program in execution

Answer : D
Explanation: None

27. Which one is an example of connectionless protocols?

  1. TCP
  2. UDP
  3. IPX/SPX
  4. Frame Relay

Answer : B
Explanation: UDP is an example of connectionless protocols. So, option B is correct.

28. Main memory of the computer system is known to be

  1. Reserved
  2. Restricted
  3. Non-volatile
  4. Volatile

Answer : D
Explanation: Main memory of the computer system is known to be volatile.

29. Banker’s algorithm is used?

  1. To prevent deadlock
  2. To solve the deadlock
  3. To deadlock recovery
  4. None of the mentioned

Answer : A
Explanation: The banker’s algorithm is used to prevent the deadlock condition. The banker algorithm is sometimes called the detection algorithm. It is named as the banker algorithm because it is used to determine whether a loan can be granted in the banking system or not. So, option A is correct.

30. A set of processes is deadlock if ____________

  1. Each process is terminated
  2. All processes are trying to kill each other
  3. Each process is blocked and will remain so forever
  4. None of the mentioned

Answer : C
Explanation: Deadlock is a situation which occurs because process P1 is in waiting state waiting for one resource and holds another resource (blocking resource). At the same time another process P2 demands that blocking resource, as it is already held by a process P1, process P2 is in waiting state unless and until process P1 releases occupied resource and hence both are waiting for resources which they need. So in this case each process is blocked and it will remain forever. So, option C is correct.

This Post Has One Comment

Leave a Reply