This week was test 2 week. I spent a decent amount of time studying for this course but not as much as i would have liked to. I'm sure this will bite back when getting my marks back. Anyways i reviewed the lecture slides, looked over all the programs that Danny had used in conjunction with the lecture slides and me and my assignment partner had made a cheat sheet together to use for the test. This came very handy.
The first part of question 1 was a piece of cake as it dealt with building trees with a certain arity. The second part is where things started to go wrong. It asked me to traverse the tree using post-order traversal, i had remembered looking over the definition while reviewing the lecture slides however i blanked out during the test and had no idea how to do it.
For question 2 i was extremely lucky, we had to write a function called list_leaves_between and it just happened to be one of the functions that me and my partner had included in our cheat sheet, so all i had to do was change up the variables to match the ones on the test and that was done. On to the last one.
This question i found extremely difficult, i spent the majority of the test time just working through this. It had to do with linked lists and manipulating the front and back of them. Although i was familiar how linked lists worked, i had never actually worked with them in code so i was in a bit of trouble here. However after careful planning i had come up with some code that looked good to me and i handed in my test and left. I definitely wasn't happy with how this test turned out and it was entirely my fault. However i learned form my mistakes and definitely won't let this happen again during the final exam
No comments:
Post a Comment