Question
Which of the following operations on a data structure
refers to the removal of an element from the front of a queue?Solution
The operation Dequeue refers to the removal of an element from the front of a queue. A queue follows the FIFO (First In, First Out) principle, meaning the first element inserted into the queue will be the first one to be removed. Dequeue is the term used to describe this removal process. The incorrect options: Pop : This refers to the removal of an element from the top of a stack, which follows the LIFO (Last In, First Out) principle. Push : This is the operation of adding an element to the top of a stack, not removing it from a queue. Peek : This operation retrieves the front element of a data structure without removing it. Enqueue : This refers to the operation of adding an element to the rear of a queue, not removing it.
 A, B and C started a business by investing Rs 50000, Rs 40000 and Rs 30000 respectively. A invested for 12 months, B for 9 months and C for 8 months. ...
X invests ₹6000 for 12 months, Y invests ₹8000 for 9 months, Z invests ₹10000 for 6 months. Profit = ₹5100. Find each share.
M and N started a business by investing Rs.4000 and Rs.5000 respectively. After 7 months, M and N increased their investments by 30% and Rs.2400 respect...
A and B started a business by investing Rs.7000 and Rs.10000 respectively. After 8 months A withdrew 50% of his investment. If at the end of the year, p...
Deepak, Mohit, and Sneha started a business with initial investments in the ratio 3:4:6 respectively. After one year, Sneha, Deepak, and Mohit made addi...
‘A’ started a business with the investment of Rs. 12000. After ‘x’ months and after 3 months from starting ‘B’ and ‘C’, respectively, jo...
- P and Q started a business by investing Rs. 24000 and Rs. 30000, respectively. After 4 months, R also joined them by investing Rs. 36000. If the annual pro...
A, B and C hired a taxi for Rs. 820 and used it for 9, 13, 19 hours respectively. Hiring charges paid by B are:
A and B started a business by investing sum in the ratio 4:5 respectively for 9 and 12 months respectively. If annual profit earned by B is Rs.1300, the...
A invested Rs X in a scheme. After 6 months, B joined with Rs 6000 more than that of A. After an year, ratio of profit of B to the total profit w...