## Question 1 What are valid substrings of "Educative"? ### Options 1. "tive" Correct ---------------------------- 2. "ude" Incorrect These characters are present in "Educative" but in a different order. ---------------------------- 3. "cat" Correct ---------------------------- 4. "vit" Incorrect These characters are present in "Educative" but in a different order. ---------------------------- --------------------------------------------- ## Question 2 In which string is "this" present as a subsequence? ### Options 1. "thims" Correct By deleting the character "m", present at index $3$, we can obtain "this". ---------------------------- 2. "sih" Incorrect These characters are present in "this" but in a different order. ---------------------------- 3. "tis" Incorrect The character "h" is missing. ---------------------------- 4. "hissy" Incorrect There is no way to delete characters from this substring to reduce it to "this". ---------------------------- --------------------------------------------- ## Question 3 What is the output if the following strings are given as input? `str1` = "this is a test string" `str2` = "tis" ### Options 1. "this" Correct If we delete the character "h" from this substring, we will get `str2`. ---------------------------- 2. "is a t" Incorrect There is no way to delete characters from this substring to reduce it to `str2`. ---------------------------- 3. "stri" Incorrect There is no way to delete characters from this substring to reduce it to `str2`. ---------------------------- 4. "test stri" Incorrect There is no way to delete characters from this substring to reduce it to `str2`. ---------------------------- --------------------------------------------- ## Question 4 What is the output if the following strings are given as input? `str1` = "asbfgedasfbdaaf" `str2` = "bfd" ### Options 1. "" Incorrect ---------------------------- 2. "bfged" Correct If we delete the characters "g" and "e" from this substring, we will get `str2`. ---------------------------- 3. "bdaaf" Incorrect There is no way to delete characters from this substring to reduce it to `str2`. ---------------------------- 4. "fbd" Incorrect There is no way to delete characters from this substring to reduce it to `str2`. ---------------------------- --------------------------------------------- ## Question 5 What is the output if the following strings are given as input? `str1` = "Hello how are you?" `str2` = "ok" ### Options 1. "ok" Incorrect This is not a substring of `str1`. ---------------------------- 2. "you" Incorrect There is no way to delete characters from this substring to reduce it to `str2`. ---------------------------- 3. "" Correct Since "ok" does not occur in `str1`, the output will be an empty string. ---------------------------- 4. "Hello how are you?" Incorrect There is no way to delete characters from this substring to reduce it to `str2`. ---------------------------- ---------------------------------------------