Question
In 2011, the total population of a village was 5280, Out
of which 30% were female. In 2012, the total population increased by 10% in comparison to the previous year. If the number of females remained the same in 2012, what was the approximate percentage increase in the number of males in 2012 in comparison to 2011?Solution
IXAMBEE SHORTCUT: we need not calculate the exact values . Let population in 2011 = 100, Male = 70 & female = 30 Now population in 2012 =100 +10 = 110, female = same = 30 So Male = 110 - 30 = 80 So % increase in population of males = (80-70)/70 X 100 =10/70 X 100 = 14.28% = 14% approx.
Which algorithm is used for computing Max-Flow in a network?
Given the following code snippet, which operation is performed on the binary tree to produce the output: 4, 2, 5, 1, 3 ?
class Node {Â Â Â Â Â in...Which data structure is most suitable for implementing a priority queue with logarithmic time complexity for insertion and deletion?
Tarjan’s algorithm is used to find:
In C++, which access specifier makes members accessible only from within the class itself and from friend functions/classes?
What is the worst-case time complexity for inserting an element into a hash table that uses separate chaining for collision resolution?
In a graph, what is the maximum number of edges in a simple undirected graph with 'n' vertices?
Time complexity of heap sort is:
Which of the following is true about triggers in a relational database?
What is the primary purpose of an abstract class?