## Question 1 What is the output if the following arrays and values of $m$ and $n$ are given as input? nums1 = [1, 2, 7, 92, 0, 0, 0], m = 4 nums2 = [3, 4, 5], n = 3 ### Options 1. [1, 2, 3, 4, 5, 7, 92] Correct Since we have to merge and sort the given lists, this is the correct answer. ---------------------------- 2. [1, 2, 7, 92, 3, 4, 5] Incorrect nums2 appended to nums1, without sorting ---------------------------- 3. [3, 4, 5, 1, 2, 7, 92] Incorrect nums1 appended to nums2, without sorting ---------------------------- --------------------------------------------- ## Question 2 What is the output if the following arrays and values of $m$ and $n$ are given as input? nums1 = [1, 12, 57, 98, 0, 0, 0, 0], m = 4 nums2 = [1, 4, 5, 57], n = 4 ### Options 1. [1, 4, 5, 12, 57, 98] Incorrect Both arrays are merged. However, duplicates are ignored. ---------------------------- 2. [1, 1, 4, 5, 12, 57, 57, 98] Correct All instances of a number should be present in the resulting, merged and sorted list. Hence, this is the correct answer. ---------------------------- 3. [1, 12, 57, 98, 1, 4, 5, 57] Incorrect nums2 appended to nums1, without sorting ---------------------------- ---------------------------------------------