## Question 1 What should be the output if the following prices are given as an input? prices = [10, 4, 11, 1, 5] ### Options 1. 9 Incorrect ---------------------------- 2. 7 Correct We buy on day 2 at price 4 and sell on day 3 at price 11, earning a profit of 7. ---------------------------- 3. 1 Incorrect ---------------------------- 4. 3 Incorrect ---------------------------- --------------------------------------------- ## Question 2 What should be the output if the following prices are given as an input? prices = [7, 7, 6, 6, 6] ### Options 1. 1 Incorrect ---------------------------- 2. -1 Incorrect ---------------------------- 3. 0 Correct It is not possible to earn a profit in this case. ---------------------------- 4. None of the above Incorrect ---------------------------- --------------------------------------------- ## Question 3 What should be the output if the following prices are given as an input? prices = [4, 10, 5, 1, 6, 7] ### Options 1. 9 Incorrect ---------------------------- 2. 6 Correct We buy on day 4 at price 1 and sell on day 6 at price 7, earning a profit of 6. ---------------------------- 3. 5 Incorrect ---------------------------- 4. 0 Incorrect ---------------------------- --------------------------------------------- ## Question 4 What should be the output if the following prices are given as an input? prices = [4, 4, 4, 3, 3, 4] ### Options 1. 1 Correct We buy on day 4 or 5 at price 3 and sell on day 6 at price 4, earning a profit of 1. ---------------------------- 2. -1 Incorrect ---------------------------- 3. 4 Incorrect ---------------------------- 4. 0 Incorrect ---------------------------- ---------------------------------------------