## Question 1 What is the output if the following linked list and value of $n$ are given as input? Linked list: 32 → 78 → 65 → 90 → 12 → 44 → NULL $n$ = 3 ### Options 1. 32 → 78 → 90 → 12 → 44 → NULL Incorrect ---------------------------- 2. 32 → 78 → 65 → 12 → 44 → NULL Correct The third to last element (90) has been removed. ---------------------------- 3. 78 → 65 → 90 → 12 → 44 → NULL Incorrect ---------------------------- 4. 32 → 78 → 65 → 90 → 12 → NULL Incorrect ---------------------------- --------------------------------------------- ## Question 2 What is the output if the following linked list and value of $n$ are given as input? Linked list: 12 → 15 → 13 → 16 → 17 → 14 → NULL $n$ = 5 ### Options 1. 12 → 15 → 13 → 16 → 17 → NULL Incorrect ---------------------------- 2. 12 → 15 → 13 → 16 → 14 → NULL Incorrect ---------------------------- 3. 12 → 15 → 16 → 17 → 14 → NULL Incorrect ---------------------------- 4. 12 → 13 → 16 → 17 → 14 → NULL Correct The fifth to last element (15) has been removed. ---------------------------- --------------------------------------------- ## Question 3 What is the output if the following linked list and value of $n$ are given as input? Linked list: 10 → 20 → 30 → 40 → 50 → 60 → NULL $n$ = 6 ### Options 1. 20 → 30 → 40 → 50 → 60 → NULL Correct The sixth to last element (10) is the first element of linked list that is removed. ---------------------------- 2. 10 → 30 → 40 → 50 → 60 → NULL Incorrect ---------------------------- 3. 10 → 20 → 30 → 40 → 50 → NULL Incorrect ---------------------------- 4. 10 → 20 → 30 → 40 → 60 → NULL Incorrect ---------------------------- ---------------------------------------------