-
1. IPC stands for
- Inter Process Communication
- Intra Process Communication
- Inter Process Command
- Intra Process Command
Show Answer
Answer : Option ( a ) 2. What is Inter process communication?
- Communication within the process
- Communication between two process
- Communication between two threads of same process
- None of the mentioned
Show Answer
Answer : Option ( b )3. Message passing system allows processes to __________
- communicate with one another without resorting to shared data
- communicate with one another by resorting to shared data
- share data
- name the recipient or sender of the message
Show Answer
Answer : Option ( a )4. Which of the following two operations are provided by the IPC facility?
- Write & delete message
- Delete & receive message
- Send & delete a message
- Receive & send message
Show Answer
Answer : Option ( d )5. Messages sent by a process __________
- have to be of a fixed size
- have to be a variable size
- can be fixed or variable sized
- None of the mentioned
Show Answer
Answer : Option ( c )6. The link between two processes P and Q to send and receive messages is called __________
- communication link
- message-passing link
- synchronization link
- All of the mentioned
Show Answer
Answer : Option ( a )7. Which of the following are TRUE for direct communication?
- A communication link can be associated with N number of process(N = max. number of processes supported by system)
- A communication link can be associated with exactly two processes
- Exactly N/2 links exist between each pair of processes(N = max. number of processes supported by system)
- Exactly two link exists between each pair of processes
Show Answer
Answer : Option ( b )8. Concurrent access to shared data may result in ____________
- data consistency
- data insecurity
- data inconsistency
- None of the mentioned
Show Answer
Answer : Option ( c )9. A situation where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which access takes place is called ____________
- data consistency
- race condition
- starvation
- critical section
Show Answer
Answer : Option ( b )10. The segment of code in which the process may change common variables, update tables, write into files is known as ____________
- program
- race condition
- synchronizing
- critical section
Show Answer
Answer : Option ( d )11. Which of the following conditions must be satisfied to solve the critical section problem?
- Mutual Exclusion
- Progress
- Bounded Waiting
- All of the mentioned
Show Answer
Answer : Option ( d )12. Mutual exclusion implies that ____________
- if a process is executing in its critical section, then no other process must be executing in their critical sections
- if a process is executing in its critical section, then other processes must be executing in their critical sections
- if a process is executing in its critical section, then all the resources of the system must be blocked until it finishes execution
- None of the mentioned
Show Answer
Answer : Option ( a )13. TestAndSet instruction is executed ____________
- periodically
- after a particular process
- atomically
- at the end of a process
Show Answer
Answer : Option ( c )14. Semaphore is a/an _______ to solve the critical section problem.
- hardware for a system
- special program for a system
- integer variable
- program
Show Answer
Answer : Option ( c )15. The signal operation of the semaphore basically works on the basic _______ system call.
- continue()
- wakeup()
- getup()
- start()
Show Answer
Answer : Option ( b )16. What are the two kinds of semaphores?
- Mutex & Counting
- Binary & Counting
- Counting & Decimal
- Decimal & Binary
Show Answer
Answer : Option ( b )17. A binary semaphore is a semaphore with integer values ____________
- 1
- -1
- 0.5
- 0.8
Show Answer
Answer : Option ( a )18. Semaphores are mostly used to implement ____________
- System calls
- IPC mechanisms
- System protection
- None of the mentioned
Show Answer
Answer : Option ( b )19. The bounded buffer problem is also known as ____________
- Readers – Writers problem
- Dining – Philosophers problem
- Producer – Consumer problem
- None of the mentioned
Show Answer
Answer : Option ( c )20. In the bounded buffer problem, there are the empty and full semaphores that ____________
- count the number of empty and full buffers (slots)
- count the number of empty and full memory spaces
- count the number of empty and full queues
- None of the mentioned
Show Answer
Answer : Option ( a )21. In the bounded buffer problem ____________
- there is only one buffer
- there are n buffers (n being greater than one but finite)
- there are infinite buffers
- the buffer size is bounded
Show Answer
Answer : Option ( b )22. The dining – philosophers problem will occur in case of ____________
- 5 philosophers and 5 chopsticks
- 4 philosophers and 5 chopsticks
- 3 philosophers and 5 chopsticks
- 6 philosophers and 5 chopsticks
Show Answer
Answer : Option ( a )23. A monitor is a type of ____________
- semaphore
- low level synchronization construct
- high level synchronization construct
- None of the mentioned
Show Answer
Answer : Option ( c )24. A procedure defined within a ________ can access only those variables declared locally within the _______ and its formal parameters.
- process, semaphore
- process, monitor
- semaphore, semaphore
- monitor, monitor
Show Answer
Answer : Option ( d )25. The monitor construct ensures that ____________
- only one process can be active at a time within the monitor
- n number of processes can be active at a time within the monitor (n being greater than 1)
- the queue has only one process in it at a time
- All of the mentioned
Show Answer
Answer : Option ( a )26. What are the operations that can be invoked on a condition variable in monitor?
- Wait & Signal
- Hold & Wait
- Signal & Hold
- Continue & Signal
Show Answer
Answer : Option ( a )27. If no process is suspended, the signal operation ____________
- puts the system into a deadlock state
- suspends some default process execution
- nothing happens
- the output is unpredictable
Show Answer
Answer : Option ( c )28. Which are two fundamental models of interprocess communication:
- Shared memory and message passing
- Independent and cooperating
- Cooperating and shared memory
- Shared memory and independent
Show Answer
Answer : Option ( a )29. In producer–consumer problem using shared memory, Select appropriate statement from the below.
- We must have available a buffer of items that can be filled by the producer and emptied by the consumer
- A producer can consume one item while the consumer is producing another item
- No synchronization required between The producer and consumer, so that the consumer does not try to consume an item that has not yet been produced
- The buffer will reside in a region of memory that need not be to shared by the producer and consumer processes
Show Answer
Answer : Option ( a )30. In Message-Passing Systems, A message-passing facility provides at least two operations:
- send(message) and delete(message)
- delete(message) and receive (message)
- send(message) and receive(message)
- write(message) and delete(message)
Show Answer
Answer : Option ( c )31. Which of the following condition stands true for Mutual Exclusion?
- No process access and manipulate the same data concurrently
- If process Pi is executing in its critical section, then no other processes can be executing in their critical sections
- Several processes access and manipulate the same data concurrently
- None of above
Show Answer
Answer : Option ( b )32. Peterson’s solution is restricted to ___ processes that alternate execution between their critical sections and remainder sections
- 1
- 2
- 3
- 4
Show Answer
Answer : Option ( b )33. Reasons of process cooperation is/are _____
- Information sharing
- Computation speed-up
- Modularity
- All of the mentioned
Show Answer
Answer : Option ( d )34. The part of program where the shared resource is accessed is called ________________
- program
- race condition
- synchronizing
- critical section
Show Answer
Answer : Option ( d )35. Way of making sure that if one process is using a shared variable or file; the other process will be excluded (stopped) from doing the same thing is called _______
- program
- race condition
- mutual exclusion
- critical section
Show Answer
Answer : Option ( c )36. TSL stands for
- Test and Set Lock
- Turn to Set Lock
- Turn and Swap Lock
- Test and Swap Lock
Show Answer
Answer : Option ( a )37. Execution of a high priority process/thread is blocked by a lower priority process/thread is called ____________
- Priority inversion problem
- Priority opposite problem
- Priority reverse problem
- Priority revert problem
Show Answer
Answer : Option ( a )38. When Buffer is empty
- Producer can produce
- Consumer can consume
- Producer can consume
- Consumer can produce
Show Answer
Answer : Option ( a )39. When Buffer is full
- Producer can produce
- Consumer can consume
- Producer can consume
- Consumer can produce
Show Answer
Answer : Option ( b )40. Buffer is partial filled
- Producer can produce
- Consumer can consume
- Both A and B
- None of above
Show Answer
Answer : Option ( c )41. Buffer is partial empty
- Producer can produce
- Consumer can consume
- Both A and B
- None of above
Show Answer
Answer : Option ( c )42. Binary semaphores can take ___ values.
- 0
- 1
- 2
- 3
Show Answer
Answer : Option ( c )43. Counting semaphore can have _______ values.
- 0
- 1
- n
- -1
Show Answer
Answer : Option ( c )44. Multiple processes are permitted to concurrently acquire a reader–writer lock in read mode, but only one process may acquire the lock for ___, as exclusive access is required for _________
- reading, readers
- reading, writers
- writing, writers
- writing, readers
Show Answer
Answer : Option ( c )45. Mutex is the short form of _________
- Mutual Exclusion Object
- More Exclusion Object
- Mutual X Object
- Mutual Exclusion Order
Show Answer
Answer : Option ( a )46. Pipe performs _________ communication.
- one-way
- two-way
- three-way
- N-way
Show Answer
Answer : Option ( a )47. The process invoking the wait operation is
- suspended until another process invokes the signal operation
- waiting for another process to complete before it can itself call the signal operation
- stopped until the next process in the queue finishes execution
- None of the mentioned
Show Answer
Answer : Option ( a )48. Which is the device that should get the highest priority in assigning the interrupts?
- Floppy disk
- Hard disk
- CPU temperature sensor
- Keyboard
Show Answer
Answer : Option ( c )49. __________ is a condition in which there is a set of concurrent processes, only one of which is able to access a given resource or perform a given function at any time.
- Mutual Exclusion
- Busy Waiting
- Deadlock
- Starvation
Show Answer
Answer : Option ( a )50. ______________techniques can be used to resolve conflicts, such as competition for resources, and to synchronize processes so that they can cooperate.
- Mutual Exclusion
- Busy Waiting
- Deadlock
- Starvation
Show Answer
Answer : Option ( a )
Inter Process Communication | Operating System MCQs
May 05, 2022
0