Question
In an orchard, the ratio of the number of mango and
lichi trees is 4:7, respectively. Also, there are few apple trees in the orchard which is 50% more than the number of mango trees. Total number of trees in the orchard is 102. What is the number of lichi trees in the orchard?Solution
Let the number of mango trees and the lichi trees in the orchard be 4x and 7x respectively. According to the question, Number of apple trees in the orchard = 4x + 0.5 × 4x = 6x Therefore, 4x + 7x + 6x = 102 Or, 17x = 102 Or, x = 6 Number of lichi trees in the orchard = 7x = 42
Which of the following is a correct way to declare and initialize a pointer to an integer in C?
What is the primary purpose of a "symbol table" in a compiler's runtime environment?
Which parser is most commonly used in modern compilers?
What is the size of 'sizeof(int)' on a system where 'int' is 4 bytes and 'sizeof(char)' is 1 byte?
What is the primary output of the lexical analysis phase of a compiler?
The primary function of a "loader" is to:
 Which of the following is NOT a typical task performed during the code optimization phase?
In LR parsing, what does the term "shift" mean?
The symbol table in a compiler is used to store:
Which memory allocation strategy is used for global variables and static variables, where memory is allocated once at compile time and remains throughou...