ISRO Computer Science (CSE) 2015 - Question 35

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2015

Choose the correct alternatives (more than one may be correct) and write the corresponding letters only : At a particular time of computation the value of a counting semaphore is 7. Then 20 P operations and 15 V operations were completed on this semaphore. The resulting values of the semaphore is

  • A. 42
  • B. 2
  • C. 7
  • D. 12

Answer: B. 2

Explanation: Final = Initial - P + V = 7 - 20 + 15 = 2.

| | All questions of ISRO Computer Science (CSE) 2015