Question
A retailer marked up an item's price by 50% above its
cost. Afterward, the item was offered at successive discounts of 20% and 10%. What was the percentage profit earned by the retailer on this transaction?Solution
Let the cost price of the article = Rs. 100 So the marked price of the article = 1.50 × 100 = Rs. 150 Selling price of the article = 150 × 0.80 × 0.90 = Rs. 108 So the profit percent = (108 – 100)/100 × 100 = 8%
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?