Question
"When a Seller purchased an item
for Rs. 1200. He marked it above the cost price and sold it with two successive discounts of 25% and 20%. By what percentage did he mark the item above its cost price if he incurred a loss of Rs. 84 in this transaction?"Solution
ATQ,
Let, the seller marked the items d% above the cost price. Marked price of the item = 1200 × {(100 + d)/100} = Rs. ‘1200 + 12d’ Selling price of the item = (1200 + 12d) × 0.75 × 0.80 = 1200 – 84 720 + 7.2d = 1116 7.2d = 396, d = 55 So, the seller marked the item at 55% above the cost price
MVCC (Multi-Version Concurrency Control) ensures:
Consider the following Java-like pseudo-code for inserting a node into a Binary Search Tree (BST):
  ```java
  class Node {
Given the following Python-like code snippet:Â
  ```python
  class Counter:
    def __init__(self):
   ...
Which SQL constraint ensures that a column cannot have NULL values?
What will be the output of the following Python code:
a=[1,2,3,4,5,6]
print(a[-1],a[-1:],a[:-1])
 What is the primary purpose of a "Trigger" in a database?
A `FOREIGN KEY` constraint is used to:
What does the ‘
Which of the following is a non-relational database?
Bitmap indexes are most efficient when: