Question
The ratio of investment of A and B is 2 : 5 and that of
B and C is 3 : 7. Find the investment of B if sum of investment of A, B and C is Rs. 33600.Solution
Ratio of investment of A and B = 2 : 5Ratio of investment of B and C = 3 : 7Ratio of investment of A, B and C = (2 * 3) : (5 * 3) : (7 * 5) = 6 : 15 : 35Let the investment of A, B and C be 6x, 15x and 35x respectivelyAccording to question,6x + 15x + 35x = 3360056x = 33600x = 600Investment of B = 15x = 15 * 600 = Rs. 9000
If an expression `x = a + b` is computed, and later in the same basic block, `y = a + b` is computed, a compiler can apply which optimization?
Which parser is most commonly used in modern compilers?
Which parsing technique is a top-down parser that cannot handle left recursion and requires the grammar to be free of common prefixes?
Which of the following is NOT a common form of 3-address code?
Which storage class in C indicates that a variable's lifetime is throughout the program execution and its scope is local to the block it is defined in, ...
Dynamic memory allocation (e.g., using `malloc` or `new`) typically occurs in which part of the runtime memory?
 What is the primary role of a "Linker"?
The primary goal of code optimization is to:
Data flow analysis is a technique used by optimizers to:
Which of the following is the first phase of a compiler?