Question
The present age of A is double of B's present age. C's
present age is 3/5th of A's present age. Average age of A, B and C is 28 yrs. Find the present age of B.Solution
ATQ: A = 2B--------(i C = 3A/5 ------------(ii Also given that: A + B + C = 28×3 From (i), value of B = A/2 A + A/2 + 3A/5 = 84 (10A + 5A + 6A)/10 = 84 21A/10 = 84 A = (84 × 10)/21 = 40 Present age of B = 40/2 = 20
Consider the following Python code:
s = "PythonProgramming"
part1 = s[2:6] # Corrected line
part2 = s[-5:]
print(part1 + par...
What is the purpose of the #include
directive in C/C++ programming? Consider the following Java code snippet:
  import java.util.PriorityQueue;
  public class HeapQuestion5 {
    publ...
Python's built-in dict (dictionary) data structure is typically implemented using a hash table. What is the average-case time complexity for get, set, a...
Backtracking is an algorithmic technique often used for problems that involve:
In a nodal analysis a circuit with 10 nodes will have _______ unknown voltage and _______equation.Â
When building a Huffman tree, the two nodes with the smallest frequencies are combined. Which line correctly creates a new parent node newNode with left...
In PAM technique which of the below attributes of the pulse is used to vary as the amplitude of message varies
Which NoSQL database is column-oriented and widely used in Big Data?
Complete the while loop condition for an iterative binary search implementation.
def binary_search(arr, target):
  low = 0
 �...