Question
A shopkeeper sold an article after offering two
successive discounts of 20% and 30%, respectively. If the marked price and the cost price of the article are Rs. 4,000 and Rs. 2,800, respectively, then find the percentage profit/loss incurred on selling the article.Solution
ATQ, ATQ: Selling price of the article = 4,000 X 0.80 X 0.70 = Rs. 2,240 Profit earned on selling the article = 2,240 - 2,800 = - Rs. 560 (loss) Required loss percentage = (560 / 2,800) X 100 = 20%
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: