Question
Consider the following statements. S1: The
sequence of procedure calls corresponds to a postorder traversal of the activation tree. S2: The sequence of procedure returns corresponds to a preorder traversal of the activation tree. Which one of the following options is correct?Solution
The sequence of procedure calls corresponds to a preorder traversal of the activation tree. The sequence of procedure returns corresponds to a postorder traversal of the activation tree.
- Given p : q = 5 : 6, find the ratio (2p + 3q) : (3p + 2q)
"Pawan distributed a sum of money among 'A', 'B', and C' in the ratio of 8:11:15. Sixty percent of A’s share is 288 less than f...
- In class ‘X’, the number of girls is 60% of the number of boys. Class ‘Y’ has 20% fewer boys than class ‘X’, and the total number of students i...
The third proportional to (4x² – 4y²) and (2x–2y) is:
A certain amount was divided among four people P, Q, R and S such that the amount obtained by S is 12.5% more than the amount obtained by Q. The amount ...
In a class of boys and girls, the number of girls is twice the number of boys. If 30 mere boys join the class, the ratio of girls and boys is 1: 1. How ...
The entry ticket at a fun park was increased in the ratio 7 : 9, due to which footfalls fell in the ratio 13 : 11. What is the new daily collection (in ...
Ratio of the number of pens with Sumit, Rohan, Chetan, Dheeraj and Gagan is 2 : 3 : 4 : 5 : 6 respectively. If two of them have more than 20% of the tot...
- The ratio of boys to girls in a school is 5:7. If 20 more boys and 20 more girls join, the ratio becomes 10:13. Find the original number of girls in the sc...
In a T20 match, the total runs scored by five batsmen is 400. The ratio of runs scored by Williamson to Taylor is 11:9. If 2/5th of the total runs are s...