## Question 1 What is the output if the following string is given as input? "programming" (Select all that apply.) ### Options 1. "programing" Incorrect One "m" is removed from the string to create a valid arrangement of the string. To reorganize the string, we can only change the reordering of characters in the string and cannot remove any character from the string. ---------------------------- 2. "rgmrgmpiano" Correct Correct answer. ---------------------------- 3. "rmpimrggano" Incorrect Two characters are adjacent to each other. ---------------------------- 4. "programimng" Correct Correct answer. ---------------------------- --------------------------------------------- ## Question 2 What is the output if the following string is given as input? "bbbbaa" (Select all that apply.) ### Options 1. "" Correct Correct answer. In all arrangements of "bbbbaa", at least two "b"s will come together. ---------------------------- 2. "ababab" Incorrect Although it is valid reordering, an extra "a" is added to the string. ---------------------------- 3. "ababb" Incorrect The last two characters are adjacent to each other. ---------------------------- 4. "bbbaa" Incorrect The input string is returned as is, and characters are adjacent to each other. ---------------------------- --------------------------------------------- ## Question 3 What is the output if the following string is given as input? “hello” (Select all that apply.) ### Options 1. "helo" Incorrect One "l" is removed from the string to create the valid arrangement of the string. To reorganize the string, we can only change the reordering of characters in the string and cannot remove any character from the string. ---------------------------- 2. "helol" Correct Correct answer. ---------------------------- 3. "lhelo" Correct Correct answer. ---------------------------- 4. "lohel" Correct Correct answer. ---------------------------- ---------------------------------------------