Question
Article βPβ, if sold at a profit of 30% earns a
profit of Rs. 510. If article βPβ is marked 60% above its cost price and then sold after offering two successive discounts of 15% and Rs. x, respectively then what would be the value of βxβ such that there is neither profit nor loss in the transaction?Solution
Let the cost price of article βPβ = Rs. 100y Then, according to the question, 30y = 510 Or, y = (510/30) = 17 So, cost price of article = Rs. 1700 Marked price of the article = 1700 Γ 1.6 = 2720 Price after 1st discount of 15% = 2720 Γ 0.85 = 2312 So, further discount be given = 2312 β 1700 = Rs. 612 Or, x = 612
Which phase of the compiler ensures that identifiers are declared before they are used?
A grammar that produces multiple parse trees for the same input string is called:
Which of the following grammars is suitable for top-down parsing?
Which of the following is the first phase of a compiler?
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 LR parser is often preferred in practice because it offers a good balance between power and table size, resolving most conflicts that SLR(1) cannot?
Which of the following parsers is the most powerful (can parse the largest class of grammars)?
Which of the following tools is commonly used to generate a lexical analyzer (scanner) from a set of regular expressions?
What is a primary advantage of generating intermediate code during compilation?
Which parsing method uses a stack and an input buffer?