Question
In an office, the ratio of the number of males to number
of females is 12:7. If 2 males joined the class and 8 females left the class, then the ratio of number of males to that of females in an office would become 5:2. Find the actual number of females in the class.Solution
Let initially the number of males and females in an office be 12x and 7x respectively. According to the question, => (12x + 2) : (7x – 8) = 5:2 => 24x + 4 = 35x – 40 => x = 4 Therefore, number of females in an office = 7 x 4 = 28
Which of the following properties is true for a binary heap?
._______ method can be used for any SQL statements(Select and Update both).
An algorithm has a time complexity of O(N² ). If the input size N doubles, how does the execution time approximately change?
Which of the following best describes network topology?
In a Breadth-First Search (BFS) algorithm for graph traversal, what is the primary role of a queue?
Which of the following protocol is a network layer protocol and used for reporting errors?
Which component is responsible for managing virtualization in a cloud environment?
Which Hadoop component is responsible for resource management?
What is the primary purpose of cookies on a website?
Consider the following binary tree:
   5
   / \
  3  8
  / \ / \
 1 4 6 9
What is t...