MCQ Bank
Producer process produces an item that is ________by the consumer.
- A) send
- B) hold
- C) blocked
- D) consumed
Which variable is used to check if the system is in a safe state in Banker’s algorithm?
- A) allocation
- B) safe
- C) counter
- D) exec
Producer-Consumer problem is considered as the process __________ problem.
- A) receiving
- B) blocking
- C) limitation
- D) synchronization
The Solution of Dining Philosopher Problem is used to avoid __________.
- A) Isolation condition
- B) Deadlock condition
- C) Multitasking condition
- D) Separation condition
We have to implement the Producer-Consumer problem by using ______.
- A) Unshared Memory
- B) Read-Only Memory (ROM)
- C) Programmable Read-Only Memory (PROM)
- D) Shared Memory
In case producer process wants to produce some item and buffer is already full to its capacity then there will be buffer________message.
- A) pull
- B) full
- C) busy
- D) empty
A system is said to be in a safe state if _____________________.
- A) processes can finish in some order
- B) CPU is idle
- C) no process is blocked
- D) resources are never allocated
In ____________a process must enter the maximum number of instances that he may need in the future.
- A) Lotus algorithm
- B) University algorithm
- C) Banker algorithm
- D) College algorithm
What is the purpose of the Banker's Algorithm?
- A) Speeding up memory access
- B) Managing user passwords
- C) Avoiding deadlock
- D) Compressing resources
In _________________Page Replacement algorithm. If we use the recent past as an approximation of the near future, then we will replace the page that has not been used for the longest period of time.
- A) Low Reset UP (LRU)
- B) Least Recently Used (LRU)
- C) Low Reset Used (LRU)
- D) Low Resolution Used (LRU)
Dining Philosopher Problem is used in Operating System to solve the Process ________.
- A) Finding Problem
- B) Subtracting Problem
- C) Synchronization Problem
- D) Adding Problem
In Banker algorithm Need data structure is used. If_______, then process Pi may need k more instances of resource type Rj to complete the task.
- A) Need[i,k] = j
- B) Need[ j,i ] = k
- C) Need[k,j] = k
- D) Need[i,j] = k
We need the following data structures in the Banker’s algorithm:
- A) Available, Min, Allocation and First.
- B) Available, Min, Allocation and Find.
- C) Available, Max, Allocation and Next.
- D) Available, Max, Allocation and Need.
In dining philosopher problem all the five philosophers can do two things ______________.
- A) thinking and eating
- B) playing and eating
- C) laughing and eating
- D) sleeping and eating
In case producer process has not yet produced any item and consumer process want to consume an item from the buffer than there will be buffer _______ message.
- A) lock
- B) empty
- C) busy
- D) full
In dining philosopher problem all the five philosophers sitting around the round circular table have _______ chopsticks.
- A) 5
- B) 4
- C) 10
- D) 3
What is the purpose of the Banker's Algorithm?
- A) Compressing resources
- B) Speeding up memory access
- C) Avoiding deadlock
- D) Managing user passwords
The address seen by memory unit i.e. the address loaded into the memory address register is commonly referred to as the ___________.
- A) Physical address
- B) Simple address
- C) Complex address
- D) Logical address
Which function is used to pause the screen at the end of the program in c language?
- A) pause()
- B) end()
- C) stop()
- D) system("pause")
In Logical to Physical Address Translation, how is the 20-bit Physical Address calculated?
- A) Segment * Offset
- B) (Segment * 16) + Offset
- C) Segment + Offset
- D) (Segment / 16) + Offset