Question
The average weight of x students
in a class increases by 1.5 kg when a new student of weight 69 kg joins the class. If instead, two students each weighing 62 kg join the original group, the average weight (compared to the original) increases by 2 kg. Find x.Solution
ATQ, Number of students = x Let initial average weight = y kg Total weight = xy kg First condition: (xy + 69) = (x + 1) × (y + 1.5) Or, xy + 69 = xy + y + 1.5x + 1.5 Or, y + 1.5x = 67.5 ----------- (I) Second condition: (xy + 62 × 2) = (x + 2) × (y + 2) Or, xy + 124 = xy + 2y + 2x + 4 Or, 2y + 2x = 120 So, y + x = 60 ----------- (II) From (II): y = 60 – x Substitute in (I), 60 – x + 1.5x = 67.5 0.5x = 7.5 x = 15 So, value of x = 15
The Banker's Algorithm is primarily used for:
Method overriding is an example of which type of polymorphism?
Which of the following scheduling algorithms minimizes average seek time?
What is the primary function of a router in a network?Â
What is a best practice for securing remote access in Windows and Unix/Linux environments?Â
What does Polymorphism mean in the context of OOP?
The latency of a network isÂ
What does "optimal substructure" mean in the context of Dynamic Programming?
Which of the following describes a major benefit of Continuous Integration (CI) in the software development lifecycle?Â
Consider the following C++ code:
#include
class Base {
public:
  virtual void show() = 0;
};
cl...