Question
A and B are travelling towards each other with a speed
of 40 km/hr and 50 km/hr. If they started at same time and A covered 20 km less distance than B before meeting him, then find the distance between them before starting.Solution
Since, the time taken by A and B is same, therefore the ratio of the distance covered by them will be equal to the ratio of their speeds. Therefore, ratio of the distance covered by A and B = 40:50 = 4:5 Let the distance covered by A and B be 4x km and 5x km According to the question, 5x – 4x = 20 Or, x = 20 Therefore, distance between them before starting = 5x + 4x = 9x = 180 km
Which of the following ACID properties ensures that either all operations within a transaction are completed successfully, or none are?
Which constraint ensures that a column contains only unique values, but allows NULL values?
Query optimization heuristics often include:
Given a `Queue` data structure with `enqueue` and `dequeue` operations. What is the element returned by the last `dequeue` operation in the following se...
During transaction before commit which of the following statements is done automatically in case of shutdown?
Indexes improve query performance but can degrade performance of:
The 'thrashing' in an operating system is related to:
Which property of a transaction ensures that either all operations within the transaction are completed successfully, or none of them are?
In a relational database, what is a candidate key?
In a relational database, which relationship allows multiple records in one table to be associated with multiple records in another table?