Question
In a group of 28 friends, the average age is 22 years.
One person aged 20 leaves, and 2 new people with an average age of 24 years join. When a new member’s age is also included, the average age becomes 23 years. What is the age of the new member?Solution
Initial total age = 28 × 22 = 616 years
Age of 2 new members = 2 × 24 = 48 years Let the new member’s age be ‘y’ years.
New total age = 616 - 20 + 48 + y = (644 + y) years
New total number of people = 28 - 1 + 2 + 1 = 30
New total age = 30 × 23 = 690 years
So, age of the new member = 690 - 644 = 46 years
Which component in the MVC architecture communicates directly with the database?
Which SQL keyword is used to filter records in a SELECT statement based on a specific condition?
In natural language processing (NLP), what does TF-IDF stand for?
In a depth-first traversal of a tree or graph, what data structure is typically used to keep track of nodes to be visited next?
In a LAN, what is a common device used to connect multiple segments or networks and make forwarding decisions based on MAC addresses?
The SI unit for measuring time is:
What is the primary purpose of the Simple Mail Transfer Protocol (SMTP)?
What is the purpose of the shebang (#!) in a shell script?
Which recovery model in a database allows for point-in-time recovery using transaction logs?
What is the purpose of the control unit in the CPU?