Question
Train 'X' departed from Chennai to Hyderabad at 7:00 a.m.
Train 'Y' left Hyderabad for Chennai at 9:00 a.m., traveling at 65 km/h. They crossed each other at 4:00 p.m. If the total distance between Chennai and Hyderabad is 760 km, find the speed of train 'X'.Solution
ATQ,
Let the speed of train 'X' be 'x' km/h
Distance covered by train 'X' in first 2 hours = 2 × x = 2x km
Time both trains travelled together = 7 hours (from 9:00 a.m. to 4:00 p.m.)
ATQ;
7 × (65 + x) = 760 - 2x
Or, 455 + 7x = 760 - 2x
Or, 305 = 9x
So, x = 33.88
So, speed of train 'X' = 33.88 km/h
Which SQL clause is used to group rows based on one or more columns?
What is the output of the following pseudo-code?Â
 ```
  count = 0
  for i from 1 to 3:
    for j from 1 t...
Which of the following schedules is serializable?
Which of the following concurrency control methods avoids deadlocks entirely but can reduce concurrency by blocking transactions at start?
Given a relation R(A, B, C, D, E) and functional dependencies {A -> B, BC -> D, D -> E}. Which of the following is a candidate key for R?
In a relational database, what is a candidate key?
Which of the following is a common technique for concurrency control in databases?
Which SQL constraint ensures that a column cannot have NULL values?
Which SQL command is used to add new rows of data into a table?
What will re.findall(r'\d+', 'abc123def45ghi') return?Â