Exams › GATE › Technical › Computer Science and Information Technology Set 2 (CS 2)
5 questions with worked solutions.
Answer: durability
Durability ensures that once a transaction is confirmed as complete, its effects are permanently recorded in the database, even in the event of a system failure, thus maintaining data integrity.
Answer: The weak entity set MUST have total participation in the identifying relationship
A weak entity set relies on its owner entity set for its identification, which necessitates that it participates fully in the identifying relationship to ensure that every instance of the weak entity can be uniquely identified.
Answer: The destination IP address is the IP address of Y
The destination IP address is the address of the final destination, which is node Y, as the packet is routed based on the IP address to reach its intended recipient.
Answer: 0* + (1 + 0(00)*)(11)*
The correct option accurately captures the language accepted by the NFA by allowing for any number of leading zeros, followed by either a single '1' or a sequence starting with '0' followed by any number of '00's, and concluding with any number of '11's. This structure reflects the transitions and states of the NFA, ensuring all valid strings are included.
Answer: T1 runs first and prints 1, T2 does not print anything (deadlock)
The correct option describes a scenario where T1 successfully increments and prints the value of x before waiting on s2, which is not signaled by T2. Since T2 cannot proceed without the signal from T1, it leads to a deadlock situation where T2 is blocked and cannot print anything.