My Report

Operating System Mock Test 2


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement
 10%

Question 1 of 10

1. The segment of code in which the process may change common variables, update tables, write into files is known as ____________

Question 1 of 10

Question 2 of 10

2. To ensure difficulties do not arise in the readers - writers problem _______ are given exclusive access to the shared object.

Question 2 of 10

Question 3 of 10

3. For Mutual exclusion to prevail in the system ____________

Question 3 of 10

Question 4 of 10

4. Round robin scheduling falls under the category of ____________

Question 4 of 10

Question 5 of 10

5. What are Spinlocks?

Question 5 of 10

Question 6 of 10

6. The portion of the process scheduler in an operating system that dispatches processes is concerned with ____________

Question 6 of 10

Question 7 of 10

7. What are the operations that can be invoked on a condition variable?

Question 7 of 10

Question 8 of 10

8. In the write ahead logging a _____________ is maintained.

Question 8 of 10

Question 9 of 10

9. TestAndSet instruction is executed ____________

Question 9 of 10

Question 10 of 10

10. Consider the methods used by processes P1 and P2 for accessing their critical sections whenever needed, as given below. The initial values of shared boolean variables S1 and S2 are randomly assigned. (GATE 2010)

Method used by P1 :
while(S1==S2);
Critical section
S1 = S2;

Method used by P2 :
while(S1!=S2);
Critical section
S2 = not(S1);

Which of the following statements describes properties achieved?

Question 10 of 10


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.