Question
The average age of a group of employees is 45 years. When a
new employee aged 60 joins, the average increases by 1 year. Find the total age of the group before the new employee joined.Solution
Let the number of employees before joining be 'P'.
Age before = 45P
(45P + 60) / (P + 1) = 46
=> 45P + 60 = 46P + 46
=> P = 14
Total age = 45 × 14 = 630 years
What will be the output of the following code when printList is called with a linked list containing the values 1 -> 2 -> 3?
class Node:
�...
What is the primary advantage of using a stack in recursive algorithms?
Which of the following creates a pattern object?
Data mart types
- Which of the following is NOT a valid relational algebra operation?                            ...
The primary role of an operating system (OS) is to:
In object-oriented programming, what type of polymorphism is achieved at runtime?Â
In a binary tree, how is the height of the tree defined?
- In a relational database, which key uniquely identifies tuples within a table and can never contain NULL values?
Dynamic programming is used by