Question
A tradesman marks his goods 32% above the cost price and
allows his customers 10% reduction on their bills. What percentage profit does he make?Solution
The tradesman marks his goods 32% above the cost price, so a = 32%. He then gives a 10% discount, which is a reduction, so b = -10%. Use formula - a+b+ab/100 Overall Percentage Change = 32+ (-10) + 32 × (-10)/100 Overall Percentage Change = 22-3.2 =18.8% Thus, the tradesman makes an 18.8% profit.
Which of the following grammars is suitable for top-down parsing?
Which of the following is NOT a type of intermediate code?
What is the main purpose of Syntax-Directed Translation?
 What is the primary role of a "Linker"?
An "activation record" (or stack frame) is created for each function call and typically contains:
"Dead code elimination" is an optimization that removes:
Which phase of compilation groups characters into tokens?
Which phase of the compiler ensures that identifiers are declared before they are used?
The symbol table in a compiler is used to store:
In a binary tree, which traversal method visits the root node first, then the left subtree, and finally the right subtree?