Blog

Tuples

In Python tuples are very similar to lists, however, unlike lists they are immutable meaning they can not be changed. You would use tuples to… Read More »Tuples

The rupee/coin changing machine at a bank has a flaw. It gives 10 ten rupee notes if you put a 100 rupee note and 10 one rupee coins if you insert a 10 rupee note but gives 10 hundred rupee notes when you put a one rupee coin Sivaji, after being ruined by his rivals in business is left with a one rupee coin and discovers the flaw in the machine by accident. By using the machine repeatedly, which of the following amounts is a valid amount that Sivaji can have when he gets tired and stops at some stage

  • by

The rupee/coin changing machine at a bank has a flaw. It gives 10 ten rupee notes if you put a 100 rupee note and 10 one rupee coins if you insert a 10 rupee note but gives 10 hundred rupee notes when you put a one rupee coin Sivaji, after being ruined by his rivals in business is left with a one rupee coin and discovers the flaw in the machine by accident. By using the machine repeatedly, which of the following amounts is a valid amount that Sivaji can have when he gets tired and stops at some stage (assume that the machine has an infinite supply of notes and coins):

a. 26975                        b. 53947
c. 18980                        d. 33966

Answer: B

Read More »The rupee/coin changing machine at a bank has a flaw. It gives 10 ten rupee notes if you put a 100 rupee note and 10 one rupee coins if you insert a 10 rupee note but gives 10 hundred rupee notes when you put a one rupee coin Sivaji, after being ruined by his rivals in business is left with a one rupee coin and discovers the flaw in the machine by accident. By using the machine repeatedly, which of the following amounts is a valid amount that Sivaji can have when he gets tired and stops at some stage