GATE 2000 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2000

54 questions

MCQ 541-mark 54

Questions 46–50 of 54

Q46Process Synchronization1 markMCQ−0.33 if wrong
Let m[0]…m[4]m[0]\ldots m[4]be mutexes (binary semaphores) and P[0]…P[4]P[0]\ldots P[4] be processes. Suppose each process P[i] executes the following:
wait (m[i]); wait (m[(i+1) mod 4]);
 ........... 
 release (m[i]); release (m[(i+1) mod 4]);
This could cause

Q47Deadlock1 markMCQ−0.33 if wrong
Which of the following is not a valid deadlock prevention scheme?

Q48Memory Management1 markMCQ−0.33 if wrong
Suppose the time to service a page fault is on the average 10 milliseconds, while a memory access takes 1 microsecond. Then a 99.99% hit ratio results in average memory access time of

Q49Relational Algebra1 markMCQ−0.33 if wrong
Given the relations
employee (name, salary, dept-no), and
department (dept-no, dept-name,address),
Which of the following queries cannot be expressed using the basic relational algebra operations (σ,π,×,⋈,∪,∩,−)\left(\sigma, \pi,\times ,\Join, \cup, \cap,-\right)?

Q50SQL1 markMCQ−0.33 if wrong
In SQL, relations can contain null values, and comparisons with null values are treated as unknown. Suppose all comparisons with a null value are treated as false. Which of the following pairs is not equivalent?