Question
In a workshop with 20 participants, the average
productivity score is 90. One person with a score of 85 leaves, and 3 new participants with an average score of 92 join. When the trainer’s score is also included, the new average becomes 91. What is the score of the trainer?Solution
Initial total score = 20 × 90 = 1800
Score of 3 new participants = 3 × 92 = 276 Let the trainer’s score be ‘y’
New total score without trainer = 1800 - 85 + 276 + y = (1991 + y)
New total number of people = 20 - 1 + 3 + 1 = 23
New total score = 23 × 91 = 2093
So, trainer’s score = 2093 - 1991 = 102
In a multithreaded environment, which of the following synchronization mechanisms is used to prevent race conditions?Â
What is the primary characteristic of the Spiral Model in software development?
What is multi-tenancy in cloud computing?
You are given a problem to find the shortest path in a graph where edge weights can be negative. Which algorithm would you *not* use?
What is the main drawback of the Minimax algorithm?
The following C++ code has a compilation error. How can you correct it to properly use the abstract base class `Printer`?
#include
...If a series is already sorted, which sorting technique will finish in the least time?
Which of the following statements best describes the role of the JDBC package in Java programming?
The number of significant figures for 5.1250 and 0.06900 respectively are____Â
What is the relationship between encapsulation and abstraction?