Question
The average height of three boys is 170 cm. If their
heights are in the ratio 6:4:7, what is the height of the tallest boy?Solution
Sum of height of boys = 3 × 170 = 510 cm
Let the height of three boys be ‘6x’ cm, ‘4x’ cm and ‘7x’ cm.
So, 6x + 4x + 7x = 510
So, x = 30
Height of tallest boy = 7x = 7 × 30 = 210 cm.
Consider the following C++ code:
#include
#include
class Printer {
public:
  void print(int n...
Which of the following scenarios is best suited for implementation using a stack data structure?
Memory compaction is a technique used to:
In a 0/1 Knapsack problem implemented using dynamic programming, a common mistake is to allow items to be reused, effectively turning it into an unbound...
A system uses a 32-bit logical address space and a page size of 4KB. If each page table entry (PTE) is 4 bytes, how many entries can a single-level page...
Which of the following HTTP methods is idempotent and is primarily used to update a specific resource's data on a server?Â
Which CPU scheduling algorithm gives preference to processes with shorter CPU burst times?
Which Hadoop component is responsible for resource management?
Which web application vulnerability is most commonly exploited through code injection, allowing attackers to manipulate database queries?Â
Which of the following is used to implement recursion?