The average age of a group of nine children is 7 years. From the group, three children, whose ages were 3 years more, 2 years more, and 4 years more than the average age, left. Six new children, whose average age is 2 years more than the given average age, join the group. Find the new average age.
Initial sum of the ages of 9 children = 7 x 9 = 63 years Ages of the children leaving: 7 + 3 = 10 years, 7 + 2 = 9 years, and 7 + 4 = 11 years, Sum of the ages of the children leaving the group = 10 + 9 + 11 = 30 years Sum of the ages after three children left = 63 – 30 = 33 years Sum of the ages of 7 new children = (7 + 2) x 7 = 63 years Total sum of the ages with new children = 33 + 63 = 96 years Number of children now = 9 – 3 + 6 = 12 years New average age = 96/12 = 8 years
The preorder traversal of a binary search tree is 15, 10, 12, 11, 20, 18, 16, 19. Which one of the following is the postorder traversal of the tree?
What does the complexity class P refer to?
Which data structure allows efficient insertion and deletion of elements at both ends?
Which network topology uses a central node to connect all other nodes?
Which method is commonly used for error detection at the Data Link Layer?
What happens when a program accesses data that is not currently in physical memory (RAM) due to virtual memory management?
The SI unit for measuring frequency is:
What is dynamic programming?
Which type of circuit allows current to flow in only one direction?
A proxy server is used as the computer?