Question
The average weight of a group of NN children is (N+1)(N
+ 1) kg. When a child weighing 36.5 kg leaves the group, the average weight decreases by 0.5 kg. Determine the original number of children in the group.Solution
Sum of the weights of 'N' children = N X (N + 1) = (N2 + N) kg ATQ, (N2 + N - 36.5) ÷ (N - 1) = N + 1 - 0.5 Or, N2 + N - 36.5 = (N - 1) X (N + 0.5) Or, N2 + N - 36.5 = N2 + 0.5N - N - 0.5 Or, 15N = 360 So, 'N' = 24 Therefore, initial number of children in the group = 'N' = 24
Which of the following integrity constraints ensures that every non-null foreign key value must reference an existing primary key value in another tabl...
Hashing is used for:
The amortized cost of appending an element at the end of a dynamic array is:
Consider the following stack operations. What will be the content of the stack after executing all the operations?
Stackstack = new Stack... Which of the following is NOT among the OWASP Top 10 Web Security Risks?
In Python, what will be the output of the following code snippet, considering scope rules?
x = 5
In asymmetric encryption, which of the following statements is correct?
Which algorithm constructs a suffix tree in linear time?
What is the primary purpose of a B+ Tree in a database management system?
Which sorting algorithm has O(n log n) average case?