## Question 1 Given the following inputs, what will be the output? nums = [4, 2, 1, 3, 5, 8] k = 5 ### Options 1. 9 Incorrect ---------------------------- 2. 2 Correct 2 is the 5th largest element in the given stream. ---------------------------- 3. 8 Incorrect ---------------------------- 4. 5 Incorrect ---------------------------- --------------------------------------------- ## Question 2 Given the following inputs, what will be the output? nums = [122, 67, 89, 34, 23, 156, 132, 99, 94, 67, 72, 107, 103, 83, 125, 54, 48, 58] k = 6 ### Options 1. 99 Incorrect ---------------------------- 2. 107 Incorrect ---------------------------- 3. 103 Correct 103 is the 6th largest element in the given stream. ---------------------------- 4. 94 Incorrect ---------------------------- --------------------------------------------- ## Question 3 Given the following inputs, what will be the output? nums = [-8, -11, -7, -9, -12, -10, -20, -33, -14, -17, -42, -8, -47, -72, -89, -16, -15, -26, -38, -44, -52, 57, -68, -90] k = 8 ### Options 1. -11 Incorrect ---------------------------- 2. -12 Correct -12 is the 8th largest element in the given stream. ---------------------------- 3. -15 Incorrect ---------------------------- 4. -10 Incorrect ---------------------------- --------------------------------------------- ## Question 4 Given the following inputs, what will be the output? nums = [-2, 8, 0, -5, 7, -1, 3, -3, -4, 1, 4, -8, -9, 2, -7, 6, -6, 9] k = 10 ### Options 1. 1 Incorrect ---------------------------- 2. 0 Incorrect ---------------------------- 3. -1 Correct -1 is the 10th largest element in the given stream. ---------------------------- 4. -2 Incorrect ---------------------------- ---------------------------------------------