CSC108H1 Midterm: UTSG CSC 108 20099_t2_solution

89 views4 pages
7 Mar 2019
School
Course
Professor
yifanyang and 39659 others unlocked
CSC108H1 Full Course Notes
21
CSC108H1 Full Course Notes
Verified Note
21 documents

Document Summary

For the purpose of this question, we will consider the letters a , e , i , o and u (whether lowercase or uppercase) to be vowels, but not y . """return the length of the longest sequence of consecutive vowels within s that starts at index i. s is a str of length at least one, and i is a valid index into s. """. Complete the table below by adding four distinct test cases for function vowels. For each, provide speci c values for s and i, the expected function result, and the purpose of the test case. All of the test cases should be di erent from each other, and each should test something signi cant. You will receive no credit for repetitive test cases. Do not include tests that check for invalid input. Value of i expected result purpose of this test case. There are many more than 4 good test cases.