Some of these labs questions are really difficult, especially recursive functions like list_internal_between. If any of these labs appear on the test I would be screwed. Since I didn't have much time left, I copied the answers to every single lab onto my cheat sheet. God bless, without a cheat sheet I would not be passing this test.
### After Test 2
So after the test, I came to the conclusion that test questions will be almost the same as lab questions. Only one question in the test was actually hard and that question was (if i can remember the name). to write the function list_even_between. This was exactly the same as a lab question I wrote down on my cheat sheet.
I can't believe how lucky I was on this test. To be honest, if I didn't write this function on my cheat sheet, I would not have been able to answer that question.
In addition, I wrote down the definitions for post-order, in-order and pre-order tree traversal on my cheat sheet. This too turned out to save me a few marks. Other than that, I had no problems during the test.
### In Class
In the last week, we spent some time working on testing and we also looked over this problem:
N = 5
M = 2
def f(N):
return M * g(N + 1)
def g(N):
return M * N
def h(N):
return f(g(N))
No comments:
Post a Comment