Question 18

image

  • I got this question wrong because I didn’t notice that the rows and columns were initizalized to the wrong values to return these values. If row was set to 0 it would work.
  • Answer E is correct because it acknowledges that the initial row it set to 1 which meants that the first row is not printed.
  • I can watch 8.2 daily videos 1-3 to learn this concept.

Question 27

image

  • I got this problem wrong because I didn’t realize that the substring would not be out of bounds since rep will stop at length - 1 and therefore doing a substring until rep+2 would just pring out the last letter.
  • Answer C is correct because it follows the pattern correctly.
  • I can watch 2.7 and 4.2 daily videos 1-3 to learn this concept.

Question 34

image

  • I got this wrong because I didn’t realize that the List would not actually be changed since the remove statement occurs after.
  • Answer B is correct because it shows that the list never actually changes after the code snippet.
  • I can watch 2.7 daily videos 1-3 and 7.4 daily video 2 to learn this concept.