21. In Unix, Which system call creates the new process?
- create
- fork
- new
- 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
- Is relatively easy to support in software
- Is quite common in modern computer
- Causes all processor to function equally
- 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?
- When process is unable to run until some task has been completed
- When process is scheduled to run after some execution
- When process is using the CPU
- None of the mentioned
Answer : B Explanation: None
24. Which of the following is an example of a spooled device?
- A graphic display device
- A line printer used to print the output of a number of jobs
- A secondary storage device in a virtual memory system
- 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
- Main Memory
- Virtual Memory
- Cache memory
- Read Only Memory
Answer : C Explanation: None
26. Process is
- Program in High level language kept on disk
- Contents of main memory
- A job in secondary memory
- A program in execution
Answer : D Explanation: None
27. Which one is an example of connectionless protocols?
- TCP
- UDP
- IPX/SPX
- 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
- Reserved
- Restricted
- Non-volatile
- Volatile
Answer : D Explanation: Main memory of the computer system is known to be volatile.
29. Banker’s algorithm is used?
- To prevent deadlock
- To solve the deadlock
- To deadlock recovery
- 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 ____________
- Each process is terminated
- All processes are trying to kill each other
- Each process is blocked and will remain so forever
- 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.
Pingback: DBMS MCQ (Multiple Choice Questions and Answers) - cozmocard