Question
Average marks of 30 students is 60 and average marks of
'n' teachers is 75. If average marks of all is 66, then find the value of (n - 2).Solution
Sum of marks of all the students = 30 Γ 60 = 1800 Sum of marks of all the teachers = 75n (1800 + 75n) Γ· (n + 30) = 66 Or, 1800 + 75n = 66n + 1980 Or, 9n = 180 Or, 'n' = 20 Required value = 20 - 2 = 18
Which of the following is the correct definition of 'polymorphism' in Object-Oriented Programming?
Which SQL keyword is used to sort the result set?
Which of the following prevents inheritance in C++?
Which of the following is used to eliminate redundancy and anomalies in a database?
Which OOP principle allows a single interface to represent different underlying forms or data types?
The concept of "data hiding" is primarily achieved through which OOP principle?
Which of the following correctly describes the concept of 'encapsulation' in OOP?
A primary key in a table:
The result of a Cartesian product of two relations R and S will have:
In C++, if a base class has a virtual function, and a derived class overrides that function, which mechanism ensures that the correct derived class func...