## Question 1 Consider the following accounts: ```Text Accounts = [ [Kate, k3@mail.com, k56@mail.com, kt@mail.com], [Kim, k65@mail.com, km@mail.com], [Kim, k@mail.com, k3@mail.com, k5@mail.com], [Kate, k78@mail.com, k90@mail.com, kt@mail.com] ] ``` What is the number of accounts in the output? ### Options 1. 4 Incorrect ---------------------------- 2. 3 Correct The first and the fourth accounts were merged since they shared the email kt@mail.com. However, the second and third accounts don’t share any emails. Therefore, the total number of accounts in the output becomes three. ---------------------------- 3. 2 Incorrect ---------------------------- 4. 1 Incorrect ---------------------------- --------------------------------------------- ## Question 2 Consider the following accounts: ```Text Accounts = [ [Anna, anna_art@mail.com, anna_work@mail.com, anna_home@mail.com], [Anna, anna@mail.com, anna_art@mail.com, anna_work@mail.com], [Charles, charlie@mail.com, charl@mail.com], [Emily, emily@mail.com, emily_first@mail.com, emily123@mail.com] ] ``` What is the correct output? ### Options 1. ```Text [ [Anna, anna_home@mail.com, anna_art@mail.com, anna_work@mail.com], [Anna, anna@mail.com, anna_art@mail.com, anna_work@mail.com], [Charles, charlie@mail.com, charl@mail.com], [Emily, emily@mail.com, emily_first@mail.com, emily123@mail.com] ] ``` Incorrect ---------------------------- 2. ```Text [ [Anna, anna_home@mail.com, anna_art@mail.com, anna_work@mail.com, Anna, anna@mai.com, anna_art@mail.com, anna_work@mail.com], [Charles, charlie@mail.com, charl@mail.com], [Emily, emily@mail.com, emily_first@mail.com, emily123@mail.com] ] ``` Incorrect ---------------------------- 3. ```Text [ [Anna, anna@mail.com, anna_art@mail.com, anna_home@mail.com, anna_work@mail.com], [Charles, charl@mail.com], charlie@mail.com], [Emily, emily123@mail.com, emily@mail.com, emily_first@mail.com] ] ``` Correct The first and the second account share the emails anna_art@mail.com and anna_work@mail.com, so they got merged. ---------------------------- 4. ```Text [ [Anna, anna@mail.com, anna_art@mail.com, anna_home@mail.com, anna_work@mail.com], [Charles, charlie@mail.com, charl@mail.com], [Emily, emily@mail.com, emily_first@mail.com, emily123@mail.com] ] ``` Incorrect The emails in each account have not been sorted. ---------------------------- --------------------------------------------- ## Question 3 Consider the following accounts: ```Text Accounts = [ [Sarah, s1@mail.com, s12@mail.com, s123@mail.com], [Sarah, s54@mail.com, s45@mail.com], [Sarah, s@mail.com, sh@mail.com, s7@mail.com] ] ``` What is the number of accounts in the output? ### Options 1. 1 Incorrect ---------------------------- 2. 2 Incorrect ---------------------------- 3. 3 Correct None of the accounts share any email addresses, so the final output will have three accounts. ---------------------------- 4. 4 Incorrect ---------------------------- ---------------------------------------------