Question
Train 'P' travels at a speed of 45 km/h and crosses
train 'Q' in 15 seconds while moving in opposite directions. Determine the speed of train 'Q' if the lengths of trains 'P' and 'Q' are 120 m and 150 m, respectively.Solution
ATQ,
Let the speed of train Q = x km/h According to the question, (45 + x) × 5/18 = (120 + 150)/15 (45 + x) × 5/18 = 18 45 + x = 64.8 x = 19.8 km/h
Which traversal of binary tree gives nodes in sorted order?
Given the IP address 192.168.10.5 and the subnet mask 255.255.255.240 , what is the range of valid host addresses in this subnet?
What will be the output of the following Java snippet?
class A {
   public void display() {
       System.out.pr...
Which of the following is a key objective of the Requirement Analysis phase in the Software Development Lifecycle (SDLC)?
Union-Find with path compression achieves nearly constant time because its complexity is:
Which of the following is a common issue that can arise from poorly designed recursive functions?
Which of the following is an effective countermeasure against Cross-Site Scripting (XSS) attacks in a web application?
Which of the following best describes the mechanism of a Cross-Site Scripting (XSS) attack?
Which tree traversal gives nodes in non-decreasing order for a BST?
Which of the following scenarios violates Boyce-Codd Normal Form (BCNF) in a relational schema?