Question: Can I get help with these python programming questions? Which of the following finds the position of the second character 'g' in the string word?

 Can I get help with these python programming questions? Which ofCan I get help with these python programming questions?

Which of the following finds the position of the second character 'g' in the string word? You can assume word does have at least two Qs in it. a) word [word.find ('Q') + 1;].find('O') + word.find('Q') + 1. b) word [word.find ('Q') + 1;].find('O') + word.find('O') c) word [word.find ('Q');].find('Q') + word.find('Q') Suppose we start with the list {3, 10, 5, 7, 9, 2, 1, 8} After TWO (2) iterations of the selection sort algorithm (as seen in class). what does the list look like? a) [1, 2, 5, 7, 9, 10, 3.8] b) [3, 5, 10, 7, 9, 2, 1, 8] c) [1, 2, 3, 10, 5, 7, 9, 8] Suppose our implementation of a linear search in a list of size 100 has runtime 3 seconds when the target is not found. What is the expected runtime of a search in a list of size 200 when the target is not found? a) about 3 seconds b) about 6 seconds c) about 12 seconds Suppose our implementation of a selection sort takes 3 seconds to sort a list of size What is the expected runtime to sort a list of size 200 ? a) about 3 seconds b) about 6 seconds c) about 12 seconds Which sorting algorithm is best when the list is randomly ordered? a) insertion sort b) selection sort c) mergesort

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!