Exams › GATE › Technical › Computer Science and Information Technology (CS, Set-1)
6 questions with worked solutions.
Answer: 2A
The hexadecimal representation of a decimal number is obtained by converting the decimal value directly to base 16. For the decimal number 42, the conversion results in 2A, where '2' represents 2 times 16 and 'A' represents 10, summing to 32 + 10 = 42.
Answer: The system can recover using the log, but recovery may repeat some actions.
The log maintains a record of all transactions and their states, allowing the system to replay actions to restore the database to a consistent state. However, since there is no checkpointing, some actions may be repeated during recovery, leading to potential inconsistencies.
Answer: -7.50
E=10000001=129 so exponent=129-127=2, and mantissa 1.111b = 1.875; with sign bit 1 the value is -1.875 x 2^2 = -7.50. The stored -15.50 is wrong.
Answer: employees whose age is more than the age of some other employee.
The expression filters the employees based on their age being greater than a specified age (age1), which represents the age of at least one other employee, thus selecting those who are older than some employee in the dataset.
Answer: There exist groups G and H such that G is not cyclic and H is cyclic.
A group of order 6 can either be cyclic or isomorphic to the symmetric group S3, which is not cyclic. If G is isomorphic to S3, it has a subgroup of order 3 that is cyclic, demonstrating that H can be cyclic while G is not.
Answer: Both L1 and L2 are undecidable
Both languages L1 and L2 are undecidable because they involve determining the behavior of Turing machines over all inputs or some inputs, which relates to the Halting Problem. Specifically, there is no algorithm that can universally decide whether a Turing machine will exceed a certain number of steps for all or any input.